javax.tools

Class Diagnostic.Kind

public static class Diagnostic.Kind extends Enum<Diagnostic.Kind>

The kind of diagnostic information.
Field Summary
static Diagnostic.KindERROR
Indicates and error.
static Diagnostic.KindMANDATORY_WARNING
Indicates a mandatory warning.
static Diagnostic.KindNOTE
Indicates a note.
static Diagnostic.KindOTHER
Indicates something else.
static List<Diagnostic.Kind>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static Diagnostic.KindWARNING
Indicates a warning.
Method Summary
List<Diagnostic.Kind>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static Diagnostic.KindvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

ERROR

public static final Diagnostic.Kind ERROR
Indicates and error.

MANDATORY_WARNING

public static final Diagnostic.Kind MANDATORY_WARNING
Indicates a mandatory warning.

NOTE

public static final Diagnostic.Kind NOTE
Indicates a note.

OTHER

public static final Diagnostic.Kind OTHER
Indicates something else.

VALUES

public static final List<Diagnostic.Kind> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(Kind c : Kind.VALUES)
    System.out.println(c);

WARNING

public static final Diagnostic.Kind WARNING
Indicates a warning.

Method Detail

family

public final List<Diagnostic.Kind> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final Diagnostic.Kind valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.