public static enum Diagnostic.Kind extends Enum<Diagnostic.Kind>
Enum Constant and Description |
---|
ERROR
阻止工具正常完成的问题。
|
MANDATORY_WARNING
类似于警告的问题,但是由工具规范强制执行。
|
NOTE
来自工具的信息性消息。
|
OTHER
诊断不适合其他种类。
|
WARNING
通常不会阻止工具正常完成的问题。
|
Modifier and Type | Method and Description |
---|---|
static Diagnostic.Kind |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static Diagnostic.Kind[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final Diagnostic.Kind ERROR
public static final Diagnostic.Kind WARNING
public static final Diagnostic.Kind MANDATORY_WARNING
public static final Diagnostic.Kind NOTE
public static final Diagnostic.Kind OTHER
public static Diagnostic.Kind[] values()
for (Diagnostic.Kind c : Diagnostic.Kind.values())
System.out.println(c);
public static Diagnostic.Kind valueOf(String name)
name
- 要返回的枚举常量的名称。
IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
NullPointerException
- 如果参数为空
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.