public class ListTreeAnnotator extends TreeAnnotator
TreeAnnotator for each tree
visited.
Checkers should not extend ListTreeAnnotator; they should instead pass a custom TreeAnnotator to the constructor.
LiteralTreeAnnotator,
PropagationTreeAnnotator| Modifier and Type | Field and Description |
|---|---|
protected List<TreeAnnotator> |
annotators |
atypeFactoryDEFAULT_VALUE| Constructor and Description |
|---|
ListTreeAnnotator(List<TreeAnnotator> annotators) |
ListTreeAnnotator(TreeAnnotator... annotators) |
| Modifier and Type | Method and Description |
|---|---|
Void |
defaultAction(Tree node,
AnnotatedTypeMirror type) |
String |
toString() |
visitBinary, visitMethodvisit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcardprotected final List<TreeAnnotator> annotators
public ListTreeAnnotator(TreeAnnotator... annotators)
annotators - the annotators that will be executed for each tree scanned by this
TreeAnnotator. They are executed in the order passed in.public ListTreeAnnotator(List<TreeAnnotator> annotators)
annotators - the annotators that will be executed for each tree scanned by this
TreeAnnotator. They are executed in the order passed in.public Void defaultAction(Tree node, AnnotatedTypeMirror type)
defaultAction in class SimpleTreeVisitor<Void,AnnotatedTypeMirror>