Lombok - v0.10.8

lombok.core
Annotation Type PrintAST


@Target(value={CONSTRUCTOR,FIELD,LOCAL_VARIABLE,METHOD,TYPE})
@Retention(value=SOURCE)
public @interface PrintAST

Will print the tree structure of annotated node and all its children. This annotation is useful only for those working on Lombok, for example to test if a Lombok handlers is doing its job correctly, or to see what the imagined endresult of a transformation is supposed to look like.


Optional Element Summary
 String outfile
          Normally, the AST is printed to standard out, but you can pick a filename instead.
 boolean printContent
          Sets whether to print node structure (false) or generated java code (true).
 

outfile

public abstract String outfile
Normally, the AST is printed to standard out, but you can pick a filename instead. Useful for many IDEs which don't have a console unless you start them from the command line.

Default:
""

printContent

public abstract boolean printContent
Sets whether to print node structure (false) or generated java code (true). By setting printContent to true, the annotated element's java code representation is printed. If false, its node structure (e.g. node classname) is printed, and this process is repeated for all children.

Default:
false

Lombok - v0.10.8

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.