Enum Class JustParser.ReadFailure

java.lang.Object
java.lang.Enum<JustParser.ReadFailure>
org.ek9lang.compiler.common.JustParser.ReadFailure
All Implemented Interfaces:
Serializable, Comparable<JustParser.ReadFailure>, Constable
Enclosing class:
JustParser

public static enum JustParser.ReadFailure extends Enum<JustParser.ReadFailure>
Why the last JustParser.readSourceFile(File, Ek9SourceVisitor) returned false - so a caller says the right thing. Only SYNTAX is a failure the formatter's force mode might repair: a CODED syntax error (E01084, E01085, E01086, E01092, E01093) already names its own fix, a limit is the code's shape, and a PACKAGE error is the package pre-pass rejecting a block that parsed (E06260, a missing description, a second version).
  • Enum Constant Details

  • Method Details

    • values

      public static JustParser.ReadFailure[] 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 JustParser.ReadFailure 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