public abstract class EclipseASTAdapter extends java.lang.Object implements EclipseASTVisitor
EclipseASTVisitor interface. Every method on that interface
has been implemented with an empty body. Override whichever methods you need.EclipseASTVisitor.Printer| Constructor and Description |
|---|
EclipseASTAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisitCompilationUnit(EclipseNode top,
CompilationUnitDeclaration unit) |
void |
endVisitField(EclipseNode fieldNode,
FieldDeclaration field) |
void |
endVisitInitializer(EclipseNode initializerNode,
Initializer initializer) |
void |
endVisitLocal(EclipseNode localNode,
LocalDeclaration local) |
void |
endVisitMethod(EclipseNode methodNode,
AbstractMethodDeclaration method) |
void |
endVisitMethodArgument(EclipseNode argNode,
Argument arg,
AbstractMethodDeclaration method) |
void |
endVisitStatement(EclipseNode statementNode,
Statement statement) |
void |
endVisitType(EclipseNode typeNode,
TypeDeclaration type) |
void |
visitAnnotationOnField(FieldDeclaration field,
EclipseNode annotationNode,
Annotation annotation) |
void |
visitAnnotationOnLocal(LocalDeclaration local,
EclipseNode annotationNode,
Annotation annotation) |
void |
visitAnnotationOnMethod(AbstractMethodDeclaration method,
EclipseNode annotationNode,
Annotation annotation) |
void |
visitAnnotationOnMethodArgument(Argument arg,
AbstractMethodDeclaration method,
EclipseNode annotationNode,
Annotation annotation) |
void |
visitAnnotationOnType(TypeDeclaration type,
EclipseNode annotationNode,
Annotation annotation) |
void |
visitCompilationUnit(EclipseNode top,
CompilationUnitDeclaration unit)
Called at the very beginning and end.
|
void |
visitField(EclipseNode fieldNode,
FieldDeclaration field)
Called when visiting a field of a class.
|
void |
visitInitializer(EclipseNode initializerNode,
Initializer initializer)
Called for static and instance initializers.
|
void |
visitLocal(EclipseNode localNode,
LocalDeclaration local)
Visits a local declaration - that is, something like 'int x = 10;' on the method level.
|
void |
visitMethod(EclipseNode methodNode,
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 argNode,
Argument arg,
AbstractMethodDeclaration method)
Visits a method argument
|
void |
visitStatement(EclipseNode statementNode,
Statement statement)
Visits a statement that isn't any of the other visit methods (e.g.
|
void |
visitType(EclipseNode typeNode,
TypeDeclaration type)
Called when visiting a type (a class, interface, annotation, enum, etcetera).
|
public void visitCompilationUnit(EclipseNode top, CompilationUnitDeclaration unit)
visitCompilationUnit in interface EclipseASTVisitorpublic void endVisitCompilationUnit(EclipseNode top, CompilationUnitDeclaration unit)
endVisitCompilationUnit in interface EclipseASTVisitorpublic void visitType(EclipseNode typeNode, TypeDeclaration type)
visitType in interface EclipseASTVisitorpublic void visitAnnotationOnType(TypeDeclaration type,
EclipseNode annotationNode,
Annotation annotation)
visitAnnotationOnType in interface EclipseASTVisitorpublic void endVisitType(EclipseNode typeNode, TypeDeclaration type)
endVisitType in interface EclipseASTVisitorpublic void visitInitializer(EclipseNode initializerNode, Initializer initializer)
visitInitializer in interface EclipseASTVisitorpublic void endVisitInitializer(EclipseNode initializerNode, Initializer initializer)
endVisitInitializer in interface EclipseASTVisitorpublic void visitField(EclipseNode fieldNode, FieldDeclaration field)
visitField in interface EclipseASTVisitorpublic void visitAnnotationOnField(FieldDeclaration field,
EclipseNode annotationNode,
Annotation annotation)
visitAnnotationOnField in interface EclipseASTVisitorpublic void endVisitField(EclipseNode fieldNode, FieldDeclaration field)
endVisitField in interface EclipseASTVisitorpublic void visitMethod(EclipseNode methodNode, AbstractMethodDeclaration method)
visitMethod in interface EclipseASTVisitorpublic void visitAnnotationOnMethod(AbstractMethodDeclaration method,
EclipseNode annotationNode,
Annotation annotation)
visitAnnotationOnMethod in interface EclipseASTVisitorpublic void endVisitMethod(EclipseNode methodNode, AbstractMethodDeclaration method)
endVisitMethod in interface EclipseASTVisitorpublic void visitMethodArgument(EclipseNode argNode, Argument arg, AbstractMethodDeclaration method)
visitMethodArgument in interface EclipseASTVisitorpublic void visitAnnotationOnMethodArgument(Argument arg,
AbstractMethodDeclaration method,
EclipseNode annotationNode,
Annotation annotation)
visitAnnotationOnMethodArgument in interface EclipseASTVisitorpublic void endVisitMethodArgument(EclipseNode argNode, Argument arg, AbstractMethodDeclaration method)
endVisitMethodArgument in interface EclipseASTVisitorpublic void visitLocal(EclipseNode localNode, LocalDeclaration local)
visitLocal in interface EclipseASTVisitorpublic void visitAnnotationOnLocal(LocalDeclaration local,
EclipseNode annotationNode,
Annotation annotation)
visitAnnotationOnLocal in interface EclipseASTVisitorpublic void endVisitLocal(EclipseNode localNode, LocalDeclaration local)
endVisitLocal in interface EclipseASTVisitorpublic void visitStatement(EclipseNode statementNode, Statement statement)
visitStatement in interface EclipseASTVisitorpublic void endVisitStatement(EclipseNode statementNode, Statement statement)
endVisitStatement in interface EclipseASTVisitorCopyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.