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 If an explicit module is not specified, the Filer API attempts to infer a module. If a module cannot be inferred, an exception is thrown. 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
The annotation type 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. A new visitor interface is added to assist processing 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. |