public abstract class SourceVisitor<R extends @NonNull Object,P extends @NonNull Object> extends TreePathScanner<R,P>
Modifier and Type | Field and Description |
---|---|
protected AnnotatedTypeFactory |
atypeFactory
The factory to use for obtaining "parsed" version of annotations.
|
protected SourceChecker |
checker
The
SourceChecker to invoke on the input source tree. |
protected Elements |
elements
The
Elements helper to use when scanning. |
protected @Nullable CompilationUnitTree |
root
The root of the AST that this
SourceVisitor will scan. |
protected Trees |
trees
The
Trees instance to use for scanning. |
protected Types |
types
The
Types helper to use when scanning. |
Constructor and Description |
---|
SourceVisitor(SourceChecker checker,
@Nullable CompilationUnitTree root)
Creates a
SourceVisitor to use for scanning a source tree. |
getCurrentPath, scan, scan
reduce, scan, 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, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitVariable, visitWhileLoop, visitWildcard
protected final SourceChecker checker
SourceChecker
to invoke on the input source tree.protected final @Nullable CompilationUnitTree root
SourceVisitor
will scan.protected final AnnotatedTypeFactory atypeFactory
public SourceVisitor(SourceChecker checker, @Nullable CompilationUnitTree root)
SourceVisitor
to use for scanning a source tree.checker
- the checker to invoke on the input source treeroot
- the AST root that this scanner will check against