Is there a Pretty Printer for JSDT DOM? [message #500517] |
Thu, 26 November 2009 08:54  |
Eclipse User |
|
|
|
Hi,
I'm currently using the core JSDT DOM API's for the purposes of code generation for a school project. While JSDT's ASTNode.toString is able to give us functional code, it's also rather ugly, and I'm wondering if anyone was aware of a pretty printer that could be used instead.
I'd appreciate any guidance anyone can offer. Thanks!
Jake
|
|
|
|
|
Re: Is there a Pretty Printer for JSDT DOM? [message #500823 is a reply to message #500610] |
Sun, 29 November 2009 06:16  |
Eclipse User |
|
|
|
Jake wrote:
> Hi David,
>
> Thanks for the quick reply! Unfortunately, I think ASTView will not be
> appropriate for me, as I'd like to get plaintext output, and avoid Eclipse
> runtime dependencies.
>
> As for Lombok, I was wondering if you could point me to more information
> on this, as I wasn't able to find much about how to use it for pretty
> printing.
>
> Please let me know. Thanks,
>
> Jake
There is an annotation (PrintAST) which will format the AST to file.
David
|
|
|
Powered by
FUDForum. Page generated in 0.27161 seconds