Well, after reading the forums at
It looks like the answer is
The correct way is to use a generated superclass or subclass.
However, at least one person ( pfnguyen ) has used the com.sun.source.tree.* and com.sun.source.util.* to do what I think what I want. But I have not seen the code.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.