Enum Class DiagnosticFormat
- All Implemented Interfaces:
Serializable, Comparable<DiagnosticFormat>, Constable
Output formats of the
diagnostic command's report.
Deliberately distinct from Format, which enumerates model
export targets (DOT, PNG, Python, …): none of those mean anything for a
compilation report, and conflating the two would offer combinations that
cannot be produced.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DiagnosticFormatReturns the enum constant of this class with the specified name.static DiagnosticFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT
Human-readable report, for terminal use. This is the default. -
JSON
Machine-readable report, for IDEs and other tooling.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-