Enum Class JustParser.ReadFailure
- All Implemented Interfaces:
Serializable, Comparable<JustParser.ReadFailure>, Constable
- Enclosing class:
JustParser
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).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic JustParser.ReadFailureReturns the enum constant of this class with the specified name.static JustParser.ReadFailure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
UNREADABLE
-
LIMIT
-
SYNTAX
-
CODED_SYNTAX
-
PACKAGE
-
-
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
-