| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.source.util.TreeScanner<R,P>
com.sun.source.util.TreePathScanner<R,P>
checkers.source.SourceVisitor<R,P>
public abstract class SourceVisitor<R,P> extends TreePathScanner<R,P>
An AST visitor that provides a variety of compiler utilities and interfaces to facilitate typechecking.
| Modifier and Type | Field and Description | 
|---|---|
| protected  AnnotatedTypeFactory | atypeFactoryThe factory to use for obtaining "parsed" version of annotations. | 
| protected  SourceChecker | checkerThe SourceCheckerto invoke on the input source tree. | 
| protected  Elements | elementsThe Elementshelper to use when scanning. | 
| protected  CompilationUnitTree | rootThe root of the AST that this SourceVisitorwill scan. | 
| protected  Trees | treesThe Treesinstance to use for scanning. | 
| protected  Types | typesThe Typeshelper to use when scanning. | 
| Constructor and Description | 
|---|
| SourceVisitor(SourceChecker checker,
              CompilationUnitTree root)Creates a SourceVisitorto use for scanning a source tree. | 
| Modifier and Type | Method and Description | 
|---|
| 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 | ||||||||