|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.source.util.TreeScanner<R,P> com.sun.source.util.TreePathScanner<R,P> checkers.source.SourceVisitor<R,P>
@DefaultQualifier(value="checkers.nullness.quals.NonNull") public abstract class SourceVisitor<R,P>
An AST visitor that provides a variety of compiler utilities and interfaces to facilitate typechecking.
Field Summary | |
---|---|
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 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 Summary | |
---|---|
SourceVisitor(SourceChecker checker,
CompilationUnitTree root)
Creates a SourceVisitor to use for scanning a source tree. |
Method Summary |
---|
Methods inherited from class com.sun.source.util.TreePathScanner |
---|
getCurrentPath, scan, scan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final SourceChecker checker
SourceChecker
to invoke on the input source tree.
protected final Trees trees
Trees
instance to use for scanning.
protected final Elements elements
Elements
helper to use when scanning.
protected final Types types
Types
helper to use when scanning.
protected final CompilationUnitTree root
SourceVisitor
will scan.
protected final AnnotatedTypeFactory atypeFactory
Constructor Detail |
---|
public SourceVisitor(SourceChecker checker, 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |