软件包 | 描述 |
---|---|
javax.annotation.processing |
用于声明注释处理器的设施和允许注释处理器与注释处理工具环境进行通信的设施。
|
javax.lang.model |
类和使用java编程语言包的层次结构模型。
|
javax.lang.model.element |
使用java编程语言的模型元素的接口。
|
javax.lang.model.util |
公用事业在帮助
program elements和
types处理。
|
Modifier and Type | Method and Description |
---|---|
Iterable<? extends Completion> |
AbstractProcessor.getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
返回一个完成空。
|
Iterable<? extends Completion> |
Processor.getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
返回到工具基础设施建议完成注释一个。
|
void |
Messager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a)
在注释元素的注释镜像的位置上打印指定类型的消息。
|
void |
Messager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)
在注释元素的注释镜像中的注释值的位置上打印指定类型的消息。
|
Modifier and Type | Method and Description |
---|---|
List<? extends AnnotationMirror> |
AnnotatedConstruct.getAnnotationMirrors()
返回直接存在于此结构上的注释。
|
Modifier and Type | Method and Description |
---|---|
List<? extends AnnotationMirror> |
Element.getAnnotationMirrors()
返回直接存在于此结构上的注释。
|
Modifier and Type | Method and Description |
---|---|
R |
AnnotationValueVisitor.visitAnnotation(AnnotationMirror a, P p)
在注释中访问注释值。
|
Modifier and Type | Method and Description |
---|---|
List<? extends AnnotationMirror> |
Elements.getAllAnnotationMirrors(Element e)
返回所有注释目前元素上,无论直接或通过继承。
|
Modifier and Type | Method and Description |
---|---|
Map<? extends ExecutableElement,? extends AnnotationValue> |
Elements.getElementValuesWithDefaults(AnnotationMirror a)
返回一个注释的元素的值,包括默认值。
|
R |
SimpleAnnotationValueVisitor6.visitAnnotation(AnnotationMirror a, 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.