public abstract class TypeAnnotator extends AnnotatedTypeScanner<Void,Void>
TypeAnnotator
is an abstract AnnotatedTypeScanner to be used with ListTypeAnnotator
.AnnotatedTypeScanner.Reduce<R>
Modifier and Type | Field and Description |
---|---|
protected AnnotatedTypeFactory |
typeFactory |
defaultResult, reduceFunction, visitedNodes
Modifier | Constructor and Description |
---|---|
protected |
TypeAnnotator(AnnotatedTypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
Void |
visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType method,
Void aVoid)
Visits an executable type.
|
reduce, reset, scan, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
protected final AnnotatedTypeFactory typeFactory
protected TypeAnnotator(AnnotatedTypeFactory typeFactory)
public Void visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType method, Void aVoid)
If this method adds annotations to the type of method parameters, then GenericAnnotatedTypeFactory.addComputedTypeAnnotations(Element,
AnnotatedTypeMirror)
should be overriden and the same annotations added to the type of
elements with kind ElementKind.PARAMETER
.
visitExecutable
in interface AnnotatedTypeVisitor<Void,Void>
visitExecutable
in class AnnotatedTypeScanner<Void,Void>
method
- the type to visitaVoid
- a visitor-specified parameter