|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.javac.JavacASTVisitor.Printer
public static class JavacASTVisitor.Printer
Prints the structure of an AST.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface lombok.javac.JavacASTVisitor |
|---|
JavacASTVisitor.Printer |
| Constructor Summary | |
|---|---|
JavacASTVisitor.Printer(boolean printContent)
|
|
JavacASTVisitor.Printer(boolean printContent,
PrintStream out)
|
|
| Method Summary | |
|---|---|
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)
|
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 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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavacASTVisitor.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 JavacASTVisitor.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()| Method Detail |
|---|
public boolean isResolutionBased()
JavacASTVisitor
isResolutionBased in interface JavacASTVisitor
public void visitCompilationUnit(JavacNode LombokNode,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
JavacASTVisitor
visitCompilationUnit in interface JavacASTVisitor
public void endVisitCompilationUnit(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit unit)
endVisitCompilationUnit in interface JavacASTVisitor
public void visitType(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
JavacASTVisitor
visitType in interface JavacASTVisitor
public void visitAnnotationOnType(com.sun.tools.javac.tree.JCTree.JCClassDecl type,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnType in interface JavacASTVisitor
public void endVisitType(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCClassDecl type)
endVisitType in interface JavacASTVisitor
public void visitInitializer(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
JavacASTVisitor
visitInitializer in interface JavacASTVisitor
public void endVisitInitializer(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCBlock initializer)
endVisitInitializer in interface JavacASTVisitor
public void visitField(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
JavacASTVisitor
visitField in interface JavacASTVisitor
public void visitAnnotationOnField(com.sun.tools.javac.tree.JCTree.JCVariableDecl field,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnField in interface JavacASTVisitor
public void endVisitField(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl field)
endVisitField in interface JavacASTVisitor
public void visitMethod(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
JavacASTVisitor
visitMethod in interface JavacASTVisitor
public void visitAnnotationOnMethod(com.sun.tools.javac.tree.JCTree.JCMethodDecl method,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnMethod in interface JavacASTVisitor
public void endVisitMethod(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethod in interface JavacASTVisitor
public void visitMethodArgument(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
JavacASTVisitor
visitMethodArgument in interface JavacASTVisitor
public 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 JavacASTVisitor
public void endVisitMethodArgument(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl arg,
com.sun.tools.javac.tree.JCTree.JCMethodDecl method)
endVisitMethodArgument in interface JavacASTVisitor
public void visitLocal(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
JavacASTVisitor
visitLocal in interface JavacASTVisitor
public void visitAnnotationOnLocal(com.sun.tools.javac.tree.JCTree.JCVariableDecl local,
JavacNode node,
com.sun.tools.javac.tree.JCTree.JCAnnotation annotation)
visitAnnotationOnLocal in interface JavacASTVisitor
public void endVisitLocal(JavacNode node,
com.sun.tools.javac.tree.JCTree.JCVariableDecl local)
endVisitLocal in interface JavacASTVisitor
public void visitStatement(JavacNode node,
com.sun.tools.javac.tree.JCTree statement)
JavacASTVisitor
visitStatement in interface JavacASTVisitor
public void endVisitStatement(JavacNode node,
com.sun.tools.javac.tree.JCTree statement)
endVisitStatement in interface JavacASTVisitor
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||