public class AnnotatedTypeCombiner extends DoubleAnnotatedTypeScanner<Void>
AnnotatedTypeScanner.Reduce<R>defaultResult, reduceFunction, visitedNodes| Constructor and Description |
|---|
AnnotatedTypeCombiner(QualifierHierarchy hierarchy)
Create an AnnotatedTypeCombiner.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
combine(AnnotatedTypeMirror from,
AnnotatedTypeMirror to,
QualifierHierarchy hierarchy)
Combines all annotations from
from and to into to using the GLB. |
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.
|
protected Void |
defaultAction(AnnotatedTypeMirror one,
AnnotatedTypeMirror two)
Called by default for any visit method that is not overridden.
|
scan, scan, scanAndReduce, scanAndReduce, visitArray, visitDeclared, visitExecutable, visitIntersection, visitTypeVariable, visitUnion, visitWildcardreduce, reset, scan, scanAndReduce, visit, visit, visitNoType, visitNull, visitPrimitivepublic AnnotatedTypeCombiner(QualifierHierarchy hierarchy)
hierarchy - the hierarchy used to the compute the GLBpublic static void combine(AnnotatedTypeMirror from, AnnotatedTypeMirror to, QualifierHierarchy hierarchy)
from and to into to using the GLB.from - the annotated type mirror from which to take annotationsto - the annotated type mirror into which annotations should be combinedhierarchy - the top type of the hierarchy whose annotations should be combinedprotected Void defaultAction(AnnotatedTypeMirror one, AnnotatedTypeMirror two)
DoubleAnnotatedTypeScannerdefaultAction in class DoubleAnnotatedTypeScanner<Void>one - the type to visittwo - a visitor-specified parameterprotected void combineAnnotations(AnnotatedTypeMirror from, AnnotatedTypeMirror to)
from - the first set of annotationsto - the second set of annotations. This is modified by side-effect to hold the result.