From eca3cd7ccc6e8c5736f5a70c3b1c095bd949689d Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 17 Jun 2009 21:57:54 +0200 Subject: AnnotationHandlers can now return a boolean to set if they actually handled the annotation or not (previously, the presumption was they always handled the annotation). This is very useful for PrintAST on eclipse, because before this change, you'd never see method contents (as the initial dietParse would come first). Now Eclipse PrintASTHandler will skip any non-full runs, and only print non-diet. It then returns true only if it printed. --- src/lombok/javac/JavacAnnotationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lombok/javac/JavacAnnotationHandler.java') diff --git a/src/lombok/javac/JavacAnnotationHandler.java b/src/lombok/javac/JavacAnnotationHandler.java index 0df83346..58308de1 100644 --- a/src/lombok/javac/JavacAnnotationHandler.java +++ b/src/lombok/javac/JavacAnnotationHandler.java @@ -7,5 +7,5 @@ import lombok.core.AnnotationValues; import com.sun.tools.javac.tree.JCTree.JCAnnotation; public interface JavacAnnotationHandler { - void handle(AnnotationValues annotation, JCAnnotation ast, JavacAST.Node annotationNode); + boolean handle(AnnotationValues annotation, JCAnnotation ast, JavacAST.Node annotationNode); } -- cgit