The Tree API exposes javac's abstract syntax trees through a set of public interfaces. We hope to include this in Mustang in due time.
UPDATE: The exact procedure to get access to the Tree API is as follows:
You now have access to all the projects under jdk-research including the Tree API.
Posted by Alex Roytman on September 22, 2005 at 09:37 PM PDT #
Posted by Peter von der Ahé on September 22, 2005 at 10:21 PM PDT #
Posted by Gary Bentley on September 25, 2005 at 05:32 PM PDT #
Posted by Peter von der Ahé on September 25, 2005 at 05:44 PM PDT #
Posted by Gary Bentley on September 25, 2005 at 06:30 PM PDT #
Posted by Peter von der Ahé on September 25, 2005 at 06:34 PM PDT #
Posted by Olivier Thomann on October 05, 2005 at 07:26 AM PDT #
The javac implementation of this interface has extra methods. So if you know that your JSR 199 implementation is javac, you can cast the CompilationTask to an abstract class with additional methods.
Posted by Peter von der Ahé on October 05, 2005 at 07:44 AM PDT #