public abstract class TypeAnnotator extends AnnotatedTypeScanner<Void,Void>
TypeAnnotator is an abstract AnnotatedTypeScanner to be used with ListTypeAnnotator.| Modifier and Type | Field and Description |
|---|---|
protected AnnotatedTypeFactory |
typeFactory |
visitedNodes| Constructor and Description |
|---|
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, visitWildcardprotected final AnnotatedTypeFactory typeFactory
public 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