aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/EclipseASTVisitor.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-15 23:36:55 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-15 23:36:55 +0200
commit92ab0e7971df9d1efc9345f17ad48355df95161a (patch)
tree1916e8de1c062f50ebf824a9ce6f93a3fc4753ea /src/lombok/eclipse/EclipseASTVisitor.java
parentc2fd0a1ef514ec109f7f1b544f46bfb8338b7e8f (diff)
downloadlombok-92ab0e7971df9d1efc9345f17ad48355df95161a.tar.gz
lombok-92ab0e7971df9d1efc9345f17ad48355df95161a.tar.bz2
lombok-92ab0e7971df9d1efc9345f17ad48355df95161a.zip
Switched the level of the Node object you get during a visitAnnotationOnX call from the Field/Type/Method/Local to the Annotation, so that you can interact with its handled flag.
Diffstat (limited to 'src/lombok/eclipse/EclipseASTVisitor.java')
-rw-r--r--src/lombok/eclipse/EclipseASTVisitor.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lombok/eclipse/EclipseASTVisitor.java b/src/lombok/eclipse/EclipseASTVisitor.java
index a9b4e706..9ab56ebe 100644
--- a/src/lombok/eclipse/EclipseASTVisitor.java
+++ b/src/lombok/eclipse/EclipseASTVisitor.java
@@ -17,7 +17,7 @@ import org.eclipse.jdt.internal.compiler.ast.Statement;
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
import org.eclipse.jdt.internal.compiler.ast.TypeReference;
-//TODO
+//TODO expand javadoc
public interface EclipseASTVisitor {
/**
* Called at the very beginning and end.
@@ -29,7 +29,7 @@ public interface EclipseASTVisitor {
* Called when visiting a type (a class, interface, annotation, enum, etcetera).
*/
void visitType(Node typeNode, TypeDeclaration type);
- void visitAnnotationOnType(Node typeNode, TypeDeclaration type, Annotation annotation);
+ void visitAnnotationOnType(TypeDeclaration type, Node annotationNode, Annotation annotation);
void endVisitType(Node typeNode, TypeDeclaration type);
/**
@@ -39,7 +39,7 @@ public interface EclipseASTVisitor {
* in a call to the visitInitializer method.
*/
void visitField(Node fieldNode, FieldDeclaration field);
- void visitAnnotationOnField(Node fieldNode, FieldDeclaration Field, Annotation annotation);
+ void visitAnnotationOnField(FieldDeclaration field, Node annotationNode, Annotation annotation);
void endVisitField(Node fieldNode, FieldDeclaration field);
/**
@@ -56,7 +56,7 @@ public interface EclipseASTVisitor {
* show up as 'Initializer', in the visitInitializer method, with modifier bit STATIC set.
*/
void visitMethod(Node methodNode, AbstractMethodDeclaration method);
- void visitAnnotationOnMethod(Node methodNode, AbstractMethodDeclaration method, Annotation annotation);
+ void visitAnnotationOnMethod(AbstractMethodDeclaration method, Node annotationNode, Annotation annotation);
void endVisitMethod(Node methodNode, AbstractMethodDeclaration method);
/**
@@ -64,7 +64,7 @@ public interface EclipseASTVisitor {
* for method parameter (those would be Arguments, a subclass of LocalDeclaration).
*/
void visitLocal(Node localNode, LocalDeclaration local);
- void visitAnnotationOnLocal(Node localNode, LocalDeclaration local, Annotation annotation);
+ void visitAnnotationOnLocal(LocalDeclaration local, Node annotationNode, Annotation annotation);
void endVisitLocal(Node localNode, LocalDeclaration local);
/**
@@ -118,7 +118,7 @@ public interface EclipseASTVisitor {
indent++;
}
- @Override public void visitAnnotationOnType(Node node, TypeDeclaration type, Annotation annotation) {
+ @Override public void visitAnnotationOnType(TypeDeclaration type, Node node, Annotation annotation) {
print("<ANNOTATION: %s />", annotation);
}
@@ -146,7 +146,7 @@ public interface EclipseASTVisitor {
indent++;
}
- @Override public void visitAnnotationOnField(Node node, FieldDeclaration field, Annotation annotation) {
+ @Override public void visitAnnotationOnField(FieldDeclaration field, Node node, Annotation annotation) {
print("<ANNOTATION: %s />", annotation);
}
@@ -161,7 +161,7 @@ public interface EclipseASTVisitor {
indent++;
}
- @Override public void visitAnnotationOnMethod(Node node, AbstractMethodDeclaration method, Annotation annotation) {
+ @Override public void visitAnnotationOnMethod(AbstractMethodDeclaration method, Node node, Annotation annotation) {
print("<ANNOTATION: %s />", annotation);
}
@@ -177,7 +177,7 @@ public interface EclipseASTVisitor {
indent++;
}
- @Override public void visitAnnotationOnLocal(Node node, LocalDeclaration local, Annotation annotation) {
+ @Override public void visitAnnotationOnLocal(LocalDeclaration local, Node node, Annotation annotation) {
print("<ANNOTATION: %s />", annotation);
}