软件包 | 描述 |
---|---|
javax.annotation.processing |
用于声明注释处理器的设施和允许注释处理器与注释处理工具环境进行通信的设施。
|
javax.lang.model |
类和使用java编程语言包的层次结构模型。
|
javax.tools |
为可以从程序调用的工具提供接口,例如,编译器。
|
Modifier and Type | Method and Description |
---|---|
SourceVersion |
ProcessingEnvironment.getSourceVersion()
|
SourceVersion |
AbstractProcessor.getSupportedSourceVersion()
如果处理器类注释在注释
SupportedSourceVersion ,返回源代码版本。
|
SourceVersion |
Processor.getSupportedSourceVersion()
返回此注释处理器支持的最新版本源版本。
|
Modifier and Type | Method and Description |
---|---|
static SourceVersion |
SourceVersion.latest()
返回可建模的最新版本的源代码。
|
static SourceVersion |
SourceVersion.latestSupported()
返回当前执行环境完全支持的最新版本源版本。
|
static SourceVersion |
SourceVersion.valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static SourceVersion[] |
SourceVersion.values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
Modifier and Type | Method and Description |
---|---|
Set<SourceVersion> |
Tool.getSourceVersions()
得到的™java编程语言的源代码版本支持的工具。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.