Community
Participate
Working Groups
JSR-201 (Extending the JavaTM Programming Language with Enumerations, Autoboxing, Enhanced for loops and Static Import) is a candidate for inclusion in J2SE 1.5. We should tentatively add support for these language changes in DOM/AST. Early specs are posted on the main page of JSR-201: http://jcp.org/en/jsr/detail?id=201
Created attachment 4577 [details] DOM/AST API experimental support for JSR-201 Provides new and updated AST node types only. Underlying parser/compiler support is missing.
Created attachment 4578 [details] DOM/AST API experimental support for JSR-201 - API test suites Includes basic tests for new and changed AST node types. Does not include any AST node conversion tests (which require parser).
DOM/AST experimental API for JSR-201 support has been released to the JDK_1_5 branch of org.eclipse.jdt.core org.eclipse.jdt.core.tests.model
I20040224 includes basic support for new and modified AST node types, incuding the ones for the new JSR-201 language features. The new node types are available in the 3.0 version of the AST API. Note that there is no Java parser/compiler backing it yet, which means that AST.parse*() methods (now on new ASTParser class) do not yet support the 3.0 AST API.
DOM/AST support for otehr JSR-201 language features is in the Eclipse 3.1 stream (and has been for a while). Expect minor tweaks to the API, but otherwise is in its finished form. Closing.