public interface EclipseASTVisitor
Modifier and Type | Interface and Description |
---|---|
static class |
EclipseASTVisitor.Printer
Prints the structure of an AST.
|
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).
|
void visitCompilationUnit(EclipseNode top, CompilationUnitDeclaration unit)
void endVisitCompilationUnit(EclipseNode top, CompilationUnitDeclaration unit)
void visitType(EclipseNode typeNode, TypeDeclaration type)
void visitAnnotationOnType(TypeDeclaration type, EclipseNode annotationNode, Annotation annotation)
void endVisitType(EclipseNode typeNode, TypeDeclaration type)
void visitField(EclipseNode fieldNode, FieldDeclaration field)
void visitAnnotationOnField(FieldDeclaration field, EclipseNode annotationNode, Annotation annotation)
void endVisitField(EclipseNode fieldNode, FieldDeclaration field)
void visitInitializer(EclipseNode initializerNode, Initializer initializer)
void endVisitInitializer(EclipseNode initializerNode, Initializer initializer)
void visitMethod(EclipseNode methodNode, AbstractMethodDeclaration method)
void visitAnnotationOnMethod(AbstractMethodDeclaration method, EclipseNode annotationNode, Annotation annotation)
void endVisitMethod(EclipseNode methodNode, AbstractMethodDeclaration method)
void visitMethodArgument(EclipseNode argNode, Argument arg, AbstractMethodDeclaration method)
void visitAnnotationOnMethodArgument(Argument arg, AbstractMethodDeclaration method, EclipseNode annotationNode, Annotation annotation)
void endVisitMethodArgument(EclipseNode argNode, Argument arg, AbstractMethodDeclaration method)
void visitLocal(EclipseNode localNode, LocalDeclaration local)
void visitAnnotationOnLocal(LocalDeclaration local, EclipseNode annotationNode, Annotation annotation)
void endVisitLocal(EclipseNode localNode, LocalDeclaration local)
void visitStatement(EclipseNode statementNode, Statement statement)
void endVisitStatement(EclipseNode statementNode, Statement statement)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.