> Hi!
>
[quoted text clipped - 5 lines]
>
> [optimizations deleted....]
The DMS Software Reengineering Toolkit could be used for this task.
It has a full Java front end parser, builds ASTs, lets you apply
arbitrary source-to-source transformations to the ASTs,
and then can prettyprint the result.
See http://www.semanticdesigns.com/Products/FrontEnds/JavaFrontEnd.html

Signature
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com