Enum Class DiagnosticFormat

java.lang.Object
java.lang.Enum<DiagnosticFormat>
ca.mcscert.jpipe.compiler.DiagnosticFormat
All Implemented Interfaces:
Serializable, Comparable<DiagnosticFormat>, Constable

public enum DiagnosticFormat extends Enum<DiagnosticFormat>
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.

  • Enum Constant Details

    • TEXT

      public static final DiagnosticFormat TEXT
      Human-readable report, for terminal use. This is the default.
    • JSON

      public static final DiagnosticFormat JSON
      Machine-readable report, for IDEs and other tooling.
  • Method Details

    • values

      public static DiagnosticFormat[] 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

      public static DiagnosticFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null