|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JavacASTVisitor
Implement so you can ask any JavacAST.LombokNode to traverse depth-first through all children, calling the appropriate visit and endVisit methods.
| Nested Class Summary | |
|---|---|
static class |
JavacASTVisitor.Printer
Prints the structure of an AST. |
| Method Summary | |
|---|---|
void |
endVisitCompilationUnit(JavacNode top,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
|
void |
endVisitField(JavacNode fieldNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
|
void |
endVisitInitializer(JavacNode initializerNode,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
|
void |
endVisitLocal(JavacNode localNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
|
void |
endVisitMethod(JavacNode methodNode,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
|
void |
endVisitMethodArgument(JavacNode argumentNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
|
void |
endVisitStatement(JavacNode statementNode,
com.sun.tools.javac.tree.JCTree statement)
|
void |
endVisitType(JavacNode typeNode,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
|
boolean |
isResolutionBased()
If true, you'll be called after all the non-resolution based visitors. |
void |
visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
|
void |
visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
|
void |
visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
|
void |
visitAnnotationOnMethodArgument(com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
|
void |
visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
|
void |
visitCompilationUnit(JavacNode top,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
Called at the very beginning and end. |
void |
visitField(JavacNode fieldNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
Called when visiting a field of a class. |
void |
visitInitializer(JavacNode initializerNode,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
Called for static and instance initializers. |
void |
visitLocal(JavacNode localNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
Visits a local declaration - that is, something like 'int x = 10;' on the method level. |
void |
visitMethod(JavacNode methodNode,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
Called for both methods and constructors. |
void |
visitMethodArgument(JavacNode argumentNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
Visits a method argument. |
void |
visitStatement(JavacNode statementNode,
com.sun.tools.javac.tree.JCTree statement)
Visits a statement that isn't any of the other visit methods (e.g. |
void |
visitType(JavacNode typeNode,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
Called when visiting a type (a class, interface, annotation, enum, etcetera). |
| Method Detail |
|---|
boolean isResolutionBased()
void visitCompilationUnit(JavacNode top,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
void endVisitCompilationUnit(JavacNode top,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
void visitType(JavacNode typeNode,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
void visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
void endVisitType(JavacNode typeNode,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
void visitField(JavacNode fieldNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
void visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
void endVisitField(JavacNode fieldNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
void visitInitializer(JavacNode initializerNode,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
void endVisitInitializer(JavacNode initializerNode,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
void visitMethod(JavacNode methodNode,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
void visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
void endVisitMethod(JavacNode methodNode,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
void visitMethodArgument(JavacNode argumentNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
void visitAnnotationOnMethodArgument(com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
void endVisitMethodArgument(JavacNode argumentNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl argument,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
void visitLocal(JavacNode localNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
void visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
void endVisitLocal(JavacNode localNode,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
void visitStatement(JavacNode statementNode,
com.sun.tools.javac.tree.JCTree statement)
void endVisitStatement(JavacNode statementNode,
com.sun.tools.javac.tree.JCTree statement)
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||