public final class ListTypeAnnotator extends TypeAnnotator
TypeAnnotator for each type
visited.
Checkers should not extend ListTypeAnnotator; they should instead pass a custom TypeAnnotator to the constructor.
DefaultForTypeAnnotator,
PropagationTypeAnnotator| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<TypeAnnotator> |
annotators |
typeFactoryvisitedNodes| Constructor and Description |
|---|
ListTypeAnnotator(java.util.List<TypeAnnotator> annotators) |
ListTypeAnnotator(TypeAnnotator... annotators) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Void |
scan(AnnotatedTypeMirror type,
java.lang.Void aVoid)
Scan
type by calling type.accept(this, p); this method may be overridden by
subclasses. |
java.lang.String |
toString() |
visitExecutablereduce, reset, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcardprotected final java.util.List<TypeAnnotator> annotators
public ListTypeAnnotator(TypeAnnotator... annotators)
annotators - the annotators that will be executed for each type scanned by this
TypeAnnotator. They are executed in the order passed in.public ListTypeAnnotator(java.util.List<TypeAnnotator> annotators)
annotators - the annotators that will be executed for each type scanned by this
TypeAnnotator. They are executed in the order passed in.protected java.lang.Void scan(AnnotatedTypeMirror type, java.lang.Void aVoid)
AnnotatedTypeScannertype by calling type.accept(this, p); this method may be overridden by
subclasses.scan in class AnnotatedTypeScanner<java.lang.Void,java.lang.Void>type - type to scanaVoid - the parameter to usetypepublic java.lang.String toString()
toString in class java.lang.Object