public static class JavacASTVisitor.Printer extends Object implements JavacASTVisitor
JavacASTVisitor.Printer| Constructor and Description |
|---|
Printer(boolean printContent) |
Printer(boolean printContent,
PrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisitCompilationUnit(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit) |
void |
endVisitField(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field) |
void |
endVisitInitializer(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCBlock initializer) |
void |
endVisitLocal(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local) |
void |
endVisitMethod(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method) |
void |
endVisitMethodArgument(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method) |
void |
endVisitStatement(JavacNode node,
com.sun.tools.javac.tree.JCTree statement) |
void |
endVisitType(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCClassDecl type) |
void |
visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation) |
void |
visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation) |
void |
visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation) |
void |
visitAnnotationOnMethodArgument(com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode nodeAnnotation,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation) |
void |
visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation) |
void |
visitCompilationUnit(JavacNode LombokNode,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
Called at the very beginning and end.
|
void |
visitField(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
Called when visiting a field of a class.
|
void |
visitInitializer(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
Called for static and instance initializers.
|
void |
visitLocal(JavacNode node,
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 node,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
Called for both methods and constructors.
|
void |
visitMethodArgument(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
Visits a method argument.
|
void |
visitStatement(JavacNode node,
com.sun.tools.javac.tree.JCTree statement)
Visits a statement that isn't any of the other visit methods (e.g.
|
void |
visitType(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
Called when visiting a type (a class, interface, annotation, enum, etcetera).
|
public Printer(boolean printContent)
printContent - if true, bodies are printed directly, as java code,
instead of a tree listing of every AST node inside it.public Printer(boolean printContent,
PrintStream out)
printContent - if true, bodies are printed directly, as java code,
instead of a tree listing of every AST node inside it.out - write output to this stream. You must close it yourself. flush() is called after every line.PrintStream.flush()public void visitCompilationUnit(JavacNode LombokNode, com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
JavacASTVisitorvisitCompilationUnit in interface JavacASTVisitorpublic void endVisitCompilationUnit(JavacNode node, com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
endVisitCompilationUnit in interface JavacASTVisitorpublic void visitType(JavacNode node, com.sun.tools.javac.tree.JCTree.JCClassDecl type)
JavacASTVisitorvisitType in interface JavacASTVisitorpublic void visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnType in interface JavacASTVisitorpublic void endVisitType(JavacNode node, com.sun.tools.javac.tree.JCTree.JCClassDecl type)
endVisitType in interface JavacASTVisitorpublic void visitInitializer(JavacNode node, com.sun.tools.javac.tree.JCTree.JCBlock initializer)
JavacASTVisitorvisitInitializer in interface JavacASTVisitorpublic void endVisitInitializer(JavacNode node, com.sun.tools.javac.tree.JCTree.JCBlock initializer)
endVisitInitializer in interface JavacASTVisitorpublic void visitField(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
JavacASTVisitorvisitField in interface JavacASTVisitorpublic void visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnField in interface JavacASTVisitorpublic void endVisitField(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
endVisitField in interface JavacASTVisitorpublic void visitMethod(JavacNode node, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
JavacASTVisitorvisitMethod in interface JavacASTVisitorpublic void visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnMethod in interface JavacASTVisitorpublic void endVisitMethod(JavacNode node, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethod in interface JavacASTVisitorpublic void visitMethodArgument(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl arg, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
JavacASTVisitorvisitMethodArgument in interface JavacASTVisitorpublic void visitAnnotationOnMethodArgument(com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode nodeAnnotation,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnMethodArgument in interface JavacASTVisitorpublic void endVisitMethodArgument(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl arg, com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethodArgument in interface JavacASTVisitorpublic void visitLocal(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
JavacASTVisitorvisitLocal in interface JavacASTVisitorpublic void visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnLocal in interface JavacASTVisitorpublic void endVisitLocal(JavacNode node, com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
endVisitLocal in interface JavacASTVisitorpublic void visitStatement(JavacNode node, com.sun.tools.javac.tree.JCTree statement)
JavacASTVisitorvisitStatement in interface JavacASTVisitorpublic void endVisitStatement(JavacNode node, com.sun.tools.javac.tree.JCTree statement)
endVisitStatement in interface JavacASTVisitorCopyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.