com.sun.tools.apt.comp
Class Apt.AptTreeScanner
java.lang.Object
com.sun.tools.javac.tree.JCTree.Visitor
com.sun.tools.javac.tree.TreeScanner
com.sun.tools.apt.comp.Apt.AptTreeScanner
- Enclosing class:
- Apt
static class Apt.AptTreeScanner
- extends TreeScanner
Used to scan javac trees to build data structures needed for
bootstrapping the apt environment. In particular:
- Generate list of canonical names of annotation types that
appear in source files given on the command line
- Collect list of javac symbols representing source files
given on the command line
| Methods inherited from class com.sun.tools.javac.tree.TreeScanner |
scan, scan, visitApply, visitAssert, visitAssign, visitAssignop, visitBinary, visitBracketExpr, visitBreak, visitCase, visitCatch, visitConditional, visitContinue, visitDoLoop, visitErroneous, visitExec, visitForeachLoop, visitForLoop, visitIdent, visitIf, visitImport, visitIndexed, visitLabelled, visitLetExpr, visitLiteral, visitModifiers, visitNewArray, visitNewClass, visitParens, visitReturn, visitSelect, visitSkip, visitSwitch, visitSynchronized, visitThrow, visitTree, visitTry, visitTypeApply, visitTypeArray, visitTypeBoundKind, visitTypeCast, visitTypeIdent, visitTypeParameter, visitTypeTest, visitUnary, visitWhileLoop, visitWildcard |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
annotationSet
private java.util.Set<java.lang.String> annotationSet
specifiedDeclCollection
private java.util.Collection<Symbol.ClassSymbol> specifiedDeclCollection
declCollection
private java.util.Collection<Symbol.ClassSymbol> declCollection
Apt.AptTreeScanner
public Apt.AptTreeScanner()
getAnnotationSet
public java.util.Set<java.lang.String> getAnnotationSet()
visitTopLevel
public void visitTopLevel(JCTree.JCCompilationUnit tree)
- Overrides:
visitTopLevel in class TreeScanner
visitBlock
public void visitBlock(JCTree.JCBlock tree)
- Overrides:
visitBlock in class TreeScanner
visitClassDef
public void visitClassDef(JCTree.JCClassDecl tree)
- Overrides:
visitClassDef in class TreeScanner
visitMethodDef
public void visitMethodDef(JCTree.JCMethodDecl tree)
- Overrides:
visitMethodDef in class TreeScanner
visitVarDef
public void visitVarDef(JCTree.JCVariableDecl tree)
- Overrides:
visitVarDef in class TreeScanner
visitAnnotation
public void visitAnnotation(JCTree.JCAnnotation tree)
- Overrides:
visitAnnotation in class TreeScanner