| Package | Description |
|---|---|
| javax.annotation.processing |
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
|
| javax.lang.model |
Classes and hierarchies of packages used to model the Java programming language.
|
| javax.tools |
Provides interfaces for tools which can be invoked from a program, for example, compilers.
|
| Modifier and Type | Method and Description |
|---|---|
SourceVersion |
ProcessingEnvironment.getSourceVersion()
|
SourceVersion |
AbstractProcessor.getSupportedSourceVersion()
If the processor class is annotated with
SupportedSourceVersion, return the source version in the annotation.
|
SourceVersion |
Processor.getSupportedSourceVersion()
Returns the latest source version supported by this annotation processor.
|
| Modifier and Type | Method and Description |
|---|---|
static SourceVersion |
SourceVersion.latest()
Returns the latest source version that can be modeled.
|
static SourceVersion |
SourceVersion.latestSupported()
Returns the latest source version fully supported by the current execution environment.
|
static SourceVersion |
SourceVersion.valueOf(String
Returns the enum constant of this type with the specified name.
|
static SourceVersion |
SourceVersion.values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
Tool.getSourceVersions()
Gets the source versions of the Java™ programming language supported by this tool.
|