public class JavacASTAdapter extends Object implements JavacASTVisitor
JavacASTVisitor interface. Every method on that interface
has been implemented with an empty body. Override whichever methods you need.JavacASTVisitor.Printer| Constructor and Description |
|---|
JavacASTAdapter() |
| 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).
|
public void visitCompilationUnit(JavacNode top, com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
visitCompilationUnit in interface JavacASTVisitorpublic void endVisitCompilationUnit(JavacNode top, com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
endVisitCompilationUnit in interface JavacASTVisitorpublic void visitType(JavacNode typeNode, com.sun.tools.javac.tree.JCTree.JCClassDecl type)
visitType in interface JavacASTVisitorpublic void visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnType in interface JavacASTVisitorpublic void endVisitType(JavacNode typeNode, com.sun.tools.javac.tree.JCTree.JCClassDecl type)
endVisitType in interface JavacASTVisitorpublic void visitField(JavacNode fieldNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
visitField in interface JavacASTVisitorpublic void visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnField in interface JavacASTVisitorpublic void endVisitField(JavacNode fieldNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
endVisitField in interface JavacASTVisitorpublic void visitInitializer(JavacNode initializerNode, com.sun.tools.javac.tree.JCTree.JCBlock initializer)
visitInitializer in interface JavacASTVisitorpublic void endVisitInitializer(JavacNode initializerNode, com.sun.tools.javac.tree.JCTree.JCBlock initializer)
endVisitInitializer in interface JavacASTVisitorpublic void visitMethod(JavacNode methodNode, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
visitMethod in interface JavacASTVisitorpublic void visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnMethod in interface JavacASTVisitorpublic void endVisitMethod(JavacNode methodNode, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethod in interface JavacASTVisitorpublic void visitMethodArgument(JavacNode argumentNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl argument, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
visitMethodArgument in interface JavacASTVisitorpublic 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)
visitAnnotationOnMethodArgument in interface JavacASTVisitorpublic void endVisitMethodArgument(JavacNode argumentNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl argument, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethodArgument in interface JavacASTVisitorpublic void visitLocal(JavacNode localNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
visitLocal in interface JavacASTVisitorpublic void visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode annotationNode,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnLocal in interface JavacASTVisitorpublic void endVisitLocal(JavacNode localNode, com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
endVisitLocal in interface JavacASTVisitorpublic void visitStatement(JavacNode statementNode, com.sun.tools.javac.tree.JCTree statement)
visitStatement in interface JavacASTVisitorpublic void endVisitStatement(JavacNode statementNode, com.sun.tools.javac.tree.JCTree statement)
endVisitStatement in interface JavacASTVisitorCopyright © 2009-2014 The Project Lombok Authors, licensed under the MIT licence.