软件包 | 描述 |
---|---|
javax.annotation.processing |
用于声明注释处理器的设施和允许注释处理器与注释处理工具环境进行通信的设施。
|
javax.tools |
为可以从程序调用的工具提供接口,例如,编译器。
|
Modifier and Type | Method and Description |
---|---|
void |
Messager.printMessage(Diagnostic.Kind kind, CharSequence msg)
打印指定类型的消息。
|
void |
Messager.printMessage(Diagnostic.Kind kind, CharSequence msg, Element e)
在元素的位置上打印指定类型的消息。
|
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 |
---|---|
Diagnostic.Kind |
Diagnostic.getKind()
获取此诊断的类型,例如错误或警告。
|
static Diagnostic.Kind |
Diagnostic.Kind.valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Diagnostic.Kind[] |
Diagnostic.Kind.values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
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.