Package org.jparsec
Enum ParseContext.ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<ParseContext.ErrorType>
,java.lang.constant.Constable
- Enclosing class:
ParseContext
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen the error is mostly lenient (as a delimiter of repetitions for example).Wheninvalid reference
Parser#label()
WhenParsers.fail(String)
is called.When any expected input isn't found.Default value, no error.WhenParser.not()
is called. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseContext.ErrorType
Returns the enum constant of this type with the specified name.static ParseContext.ErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Default value, no error. -
DELIMITING
When the error is mostly lenient (as a delimiter of repetitions for example). -
UNEXPECTED
WhenParser.not()
is called. Signals that something isn't expected. -
MISSING
When any expected input isn't found. -
EXPECTING
Wheninvalid reference
Parser#label()
-
FAILURE
WhenParsers.fail(String)
is called. Signals a serious problem.
-
-
Field Details
-
mergeable
final boolean mergeable
-
-
Constructor Details
-
ErrorType
private ErrorType(boolean mergeable)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-