Use of JCP site is subject to the
JCP Terms of Use and the
Oracle Privacy Policy
|
Package javax.annotation.processingThe initial inputs can include module-info files. Such files are
represented by Work is ongoing on a possible refinement to the Filer API, JDK-8175119: Need to specify module of types created by Filer.createSourceFile/Filer.createClassFile? The syntax of For processors written to run both pre- and post-modules, the
recommendation is that the supported annotation type name include the
module prefix and rely on the code in
New overloaded methods
Package javax.lang.model.*The direct support for modeling modules proceeded mostly as
expected for modeling a new language construct in the API: a new
The API support for modules throughout the API is similar to the support for packages. However, note that the modeling of directive structure of a module may be changing in the near future, JDK-8175118: Revisit modeling of module directives. The methods added to interfaces in this release generally use the new-in-Java-8 feature of default methods to provide some nominal implementation and provide better source compatibility for implementers of the interfaces. This included the new ElementVisitor.visitModule method method. The existing one-argument "visit" methods in the AnnotationValueVisitor, ElementVisitor, and TypeVisitor interfaces were also upgraded to be default methods. Besides a new constant for The behavior of The The constructors of 6-era visitor classes have been deprecated since that source level is also deprecated. The overall specification had a cleanup pass, obsolete statements removed, more @jls tags, etc. |