|Constructor and Description|
Create an AnnotatedTypeCombiner.
|Modifier and Type||Method and Description|
Combines all annotations from
Computes the greatest lower bound of each set of annotations shared by from and to, and replaces the annotations in to with the result.
Called by default for any visit method that is not overridden.
scan, scan, scanAndReduce, scanAndReduce, visitArray, visitDeclared, visitExecutable, visitIntersection, visitTypeVariable, visitUnion, visitWildcard
reduce, reset, scan, scanAndReduce, visit, visit, visitNoType, visitNull, visitPrimitive
public AnnotatedTypeCombiner(QualifierHierarchy hierarchy)
hierarchy- the hierarchy used to the compute the GLB
public static void combine(AnnotatedTypeMirror from, AnnotatedTypeMirror to, QualifierHierarchy hierarchy)
tousing the GLB.
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
protected Void defaultAction(AnnotatedTypeMirror one, AnnotatedTypeMirror two)
protected void combineAnnotations(AnnotatedTypeMirror from, AnnotatedTypeMirror to)
from- the first set of annotations
to- the second set of annotations. This is modified by side-effect to hold the result.