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.ImplicitsTreeAnnotator,
PropagationTreeAnnotator| Modifier and Type | Field and Description |
|---|---|
protected List<TreeAnnotator> |
annotators |
atypeFactoryDEFAULT_VALUE| Constructor and Description |
|---|
ListTreeAnnotator(TreeAnnotator... annotators) |
| Modifier and Type | Method and Description |
|---|---|
Void |
defaultAction(Tree node,
AnnotatedTypeMirror type) |
visitMethodvisit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, 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 Void defaultAction(Tree node, AnnotatedTypeMirror type)
defaultAction in class SimpleTreeVisitor<Void,AnnotatedTypeMirror>