|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.eclipse.EclipseASTVisitor.Printer
public static class EclipseASTVisitor.Printer
Prints the structure of an AST.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface lombok.eclipse.EclipseASTVisitor |
|---|
EclipseASTVisitor.Printer |
| Constructor Summary | |
|---|---|
EclipseASTVisitor.Printer(boolean printContent)
|
|
EclipseASTVisitor.Printer(boolean printContent,
PrintStream out)
|
|
| Method Summary | |
|---|---|
boolean |
deferUntilPostDiet()
Return true if this handler should not be run in the diet parse phase. |
void |
endVisitCompilationUnit(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
endVisitField(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field)
|
void |
endVisitInitializer(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Initializer initializer)
|
void |
endVisitLocal(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local)
|
void |
endVisitMethod(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
|
void |
endVisitMethodArgument(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
|
void |
endVisitStatement(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Statement statement)
|
void |
endVisitType(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type)
|
void |
visitAnnotationOnField(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
|
void |
visitAnnotationOnLocal(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
|
void |
visitAnnotationOnMethod(org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
|
void |
visitAnnotationOnMethodArgument(org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
|
void |
visitAnnotationOnType(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
|
void |
visitCompilationUnit(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
Called at the very beginning and end. |
void |
visitField(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field)
Called when visiting a field of a class. |
void |
visitInitializer(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Initializer initializer)
Called for static and instance initializers. |
void |
visitLocal(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local)
Visits a local declaration - that is, something like 'int x = 10;' on the method level. |
void |
visitMethod(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
Called for both methods (MethodDeclaration) and constructors (ConstructorDeclaration), but not for Clinit objects, which are a vestigial Eclipse thing that never contain anything. |
void |
visitMethodArgument(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
Visits a method argument |
void |
visitStatement(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Statement statement)
Visits a statement that isn't any of the other visit methods (e.g. |
void |
visitType(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration 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 EclipseASTVisitor.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 EclipseASTVisitor.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 deferUntilPostDiet()
EclipseASTVisitortrue here. Otherwise, return false here.
deferUntilPostDiet in interface EclipseASTVisitor
public void visitCompilationUnit(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
EclipseASTVisitor
visitCompilationUnit in interface EclipseASTVisitor
public void endVisitCompilationUnit(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
endVisitCompilationUnit in interface EclipseASTVisitor
public void visitType(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type)
EclipseASTVisitor
visitType in interface EclipseASTVisitor
public void visitAnnotationOnType(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
visitAnnotationOnType in interface EclipseASTVisitor
public void endVisitType(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type)
endVisitType in interface EclipseASTVisitor
public void visitInitializer(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Initializer initializer)
EclipseASTVisitor
visitInitializer in interface EclipseASTVisitor
public void endVisitInitializer(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Initializer initializer)
endVisitInitializer in interface EclipseASTVisitor
public void visitField(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field)
EclipseASTVisitor
visitField in interface EclipseASTVisitor
public void visitAnnotationOnField(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
visitAnnotationOnField in interface EclipseASTVisitor
public void endVisitField(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field)
endVisitField in interface EclipseASTVisitor
public void visitMethod(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
EclipseASTVisitor
visitMethod in interface EclipseASTVisitor
public void visitAnnotationOnMethod(org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
visitAnnotationOnMethod in interface EclipseASTVisitor
public void endVisitMethod(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
endVisitMethod in interface EclipseASTVisitor
public void visitMethodArgument(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
EclipseASTVisitor
visitMethodArgument in interface EclipseASTVisitor
public void visitAnnotationOnMethodArgument(org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
visitAnnotationOnMethodArgument in interface EclipseASTVisitor
public void endVisitMethodArgument(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Argument arg,
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration method)
endVisitMethodArgument in interface EclipseASTVisitor
public void visitLocal(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local)
EclipseASTVisitor
visitLocal in interface EclipseASTVisitor
public void visitAnnotationOnLocal(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation)
visitAnnotationOnLocal in interface EclipseASTVisitor
public void endVisitLocal(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration local)
endVisitLocal in interface EclipseASTVisitor
public void visitStatement(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Statement statement)
EclipseASTVisitor
visitStatement in interface EclipseASTVisitor
public void endVisitStatement(EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.Statement statement)
endVisitStatement in interface EclipseASTVisitor
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||