From 6254337948180140a47c872cb046cdff7e1326c4 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 18 Jun 2009 01:17:03 +0200 Subject: Expanded the AST printers to support a target PrintStream, and expanded the @PrintAST annotation to let you supply an optional filename. Useful particularly for IDEs, which don't usually have a viewable console. Also renamed the printers to just 'Printer', as they are already inner classes of a specifically named type (JavacASTVisitor & co). --- src/lombok/core/PrintAST.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lombok/core/PrintAST.java') diff --git a/src/lombok/core/PrintAST.java b/src/lombok/core/PrintAST.java index 3ad2bd68..9fb12b2c 100644 --- a/src/lombok/core/PrintAST.java +++ b/src/lombok/core/PrintAST.java @@ -7,4 +7,6 @@ import java.lang.annotation.Target; @Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.SOURCE) -public @interface PrintAST {} +public @interface PrintAST { + String outfile() default ""; +} -- cgit