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 |
atypeFactory
DEFAULT_VALUE
Constructor and Description |
---|
ListTreeAnnotator(List<TreeAnnotator> annotators) |
ListTreeAnnotator(TreeAnnotator... annotators) |
Modifier and Type | Method and Description |
---|---|
Void |
defaultAction(Tree node,
AnnotatedTypeMirror type) |
visitBinary, visitMethod
visit, visit, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, 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, visitWildcard
protected 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>