public interface JavacASTVisitor
| Modifier and Type | Interface and Description |
|---|---|
static class |
JavacASTVisitor.Printer
Prints the structure of an AST.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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).
|
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)
Copyright © 2009-2013 The Project Lombok Authors, licensed under the MIT licence.