public class AnnotatedTypeCombiner extends AnnotatedTypeComparer<Void>
AnnotatedTypeScanner.Reduce<R>defaultResult, reduceFunction, visitedNodes| 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 |
combineRs(Void r1,
Void r2)
Supplies the logic to reduce on how to combine two R objects.
|
protected Void |
compare(AnnotatedTypeMirror one,
AnnotatedTypeMirror two)
Compares two annotated type mirrors.
|
reduce, scan, scan, scanAndReduce, scanAndReduce, visitArray, visitDeclared, visitExecutable, visitIntersection, visitTypeVariable, visitUnion, visitWildcardreset, scan, scanAndReduce, visit, visit, visitNoType, visitNull, visitPrimitivepublic 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 compare(AnnotatedTypeMirror one, AnnotatedTypeMirror two)
AnnotatedTypeComparercompare in class AnnotatedTypeComparer<Void>protected Void combineRs(Void r1, Void r2)
AnnotatedTypeComparercombineRs in class AnnotatedTypeComparer<Void>protected 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.