Serializable
, Comparable<Diagnostic.Kind>
, Constable
Diagnostic<S>
public static enum Diagnostic.Kind extends Enum<Diagnostic.Kind>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant | Description |
---|---|
ERROR |
Problem which prevents the tool's normal completion. |
MANDATORY_WARNING |
Problem similar to a warning, but is mandated by the tool's specification. |
NOTE |
Informative message from the tool. |
OTHER |
Diagnostic which does not fit within the other kinds. |
WARNING |
Problem which does not usually prevent the tool from completing normally. |
Modifier and Type | Method | Description |
---|---|---|
static Diagnostic.Kind |
valueOf |
Returns the enum constant of this class with the specified name. |
static Diagnostic.Kind[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
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()
public static Diagnostic.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.compiler/javax/tools/Diagnostic.Kind.html