Uses of Enum Class
javax.lang.model.SourceVersion
Package
Description
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java
programming language.
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
-
Uses of SourceVersion in javax.annotation.processing
Modifier and TypeMethodDescriptionProcessingEnvironment.getSourceVersion()
AbstractProcessor.getSupportedSourceVersion()
If the processor class is annotated withSupportedSourceVersion
, return the source version in the annotation.Processor.getSupportedSourceVersion()
Returns the latest source version supported by this annotation processor. -
Uses of SourceVersion in javax.lang.model
Modifier and TypeMethodDescriptionstatic 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
(Runtime.Version rv) Returns the latest source version that is usable under the runtime version argument.static SourceVersion
Returns the enum constant of this class with the specified name.static SourceVersion[]
SourceVersion.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic boolean
SourceVersion.isKeyword
(CharSequence s, SourceVersion version) Returns whether or nots
is a keyword, boolean literal, or null literal in the given source version.static boolean
SourceVersion.isName
(CharSequence name, SourceVersion version) Returns whether or notname
is a syntactically valid qualified name in the given source version. -
Uses of SourceVersion in javax.tools
Modifier and TypeMethodDescriptionTool.getSourceVersions()
Returns the source versions of the Java programming language supported by this tool.