软件包 | 描述 |
---|---|
javax.annotation.processing |
用于声明注释处理器的设施和允许注释处理器与注释处理工具环境进行通信的设施。
|
javax.lang.model.element |
使用java编程语言的模型元素的接口。
|
javax.lang.model.util |
公用事业在帮助
program elements和
types处理。
|
Modifier and Type | Method and Description |
---|---|
void |
Messager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)
在注释元素的注释镜像中的注释值的位置上打印指定类型的消息。
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue |
ExecutableElement.getDefaultValue()
返回默认值,如果这个可执行文件是一个注释类型元素。
|
AnnotationValue |
UnknownAnnotationValueException.getUnknownAnnotationValue()
返回未知的注释值。
|
Modifier and Type | Method and Description |
---|---|
Map<? extends ExecutableElement,? extends AnnotationValue> |
AnnotationMirror.getElementValues()
返回此注释元素的值。
|
Modifier and Type | Method and Description |
---|---|
R |
AnnotationValueVisitor.visit(AnnotationValue av)
一个方便的方法相当于
v.visit(av, null) 。
|
R |
AnnotationValueVisitor.visit(AnnotationValue av, P p)
访问注释值。
|
R |
AnnotationValueVisitor.visitUnknown(AnnotationValue av, P p)
访问一个未知的注释值。
|
Modifier and Type | Method and Description |
---|---|
R |
AnnotationValueVisitor.visitArray(List<? extends AnnotationValue> vals, P p)
在注释中访问数组值。
|
Constructor and Description |
---|
UnknownAnnotationValueException(AnnotationValue av, Object p)
创建一个新的
UnknownAnnotationValueException 。
|
Modifier and Type | Method and Description |
---|---|
Map<? extends ExecutableElement,? extends AnnotationValue> |
Elements.getElementValuesWithDefaults(AnnotationMirror a)
返回一个注释的元素的值,包括默认值。
|
Modifier and Type | Method and Description |
---|---|
R |
AbstractAnnotationValueVisitor6.visit(AnnotationValue av)
访问一个标注值如果通过自身价值的
accept 方法为额外的参数传递
null 。
|
R |
AbstractAnnotationValueVisitor6.visit(AnnotationValue av, P p)
访问一个标注值如果通过自身价值的
accept 。
|
R |
AbstractAnnotationValueVisitor6.visitUnknown(AnnotationValue av, P p)
访问一个未知的注释值。
|
Modifier and Type | Method and Description |
---|---|
R |
SimpleAnnotationValueVisitor6.visitArray(List<? extends AnnotationValue> vals, P p)
在注释中访问数组值。
|
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.