| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Diagnostic.Kind 的软件包 | |
|---|---|
| javax.annotation.processing | 用来声明注释处理器并允许注释处理器与注释处理工具环境通信的工具。 | 
| javax.tools | 为能够从程序(例如,编译器)中调用的工具提供接口。 | 
| javax.annotation.processing 中 Diagnostic.Kind 的使用 | 
|---|
| 参数类型为 Diagnostic.Kind 的 javax.annotation.processing 中的方法 | |
|---|---|
 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)
在已注释元素的注释镜像内部注释值的位置上打印指定种类的消息。  | 
| javax.tools 中 Diagnostic.Kind 的使用 | 
|---|
| 返回 Diagnostic.Kind 的 javax.tools 中的方法 | |
|---|---|
 Diagnostic.Kind | 
Diagnostic.getKind()
获取此诊断的类型,例如,错误或者警告。  | 
static Diagnostic.Kind | 
Diagnostic.Kind.valueOf(String name)
返回带有指定名称的该类型的枚举常量。  | 
static Diagnostic.Kind[] | 
Diagnostic.Kind.values()
Returns an array containing the constants of this enum type, in the order they are declared.  | 
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。