Class AnnotatedTypeCombiner

    • Constructor Detail

      • AnnotatedTypeCombiner

        public AnnotatedTypeCombiner​(QualifierHierarchy hierarchy)
        Create an AnnotatedTypeCombiner.
        Parameters:
        hierarchy - the hierarchy used to the compute the GLB
    • Method Detail

      • combine

        public static void combine​(AnnotatedTypeMirror from,
                                   AnnotatedTypeMirror to,
                                   QualifierHierarchy hierarchy)
        Combines all annotations from from and to into to using the GLB.
        Parameters:
        from - the annotated type mirror from which to take annotations
        to - the annotated type mirror into which annotations should be combined
        hierarchy - the top type of the hierarchy whose annotations should be combined
      • combineAnnotations

        protected void combineAnnotations​(AnnotatedTypeMirror from,
                                          AnnotatedTypeMirror to)
        Computes the greatest lower bound of each set of annotations shared by from and to, and replaces the annotations in to with the result.
        Parameters:
        from - the first set of annotations
        to - the second set of annotations. This is modified by side-effect to hold the result.