Enum Class Parser.State
- All Implemented Interfaces:
Serializable,Comparable<Parser.State>,Constable
- Enclosing class:
Parser
The states of the parser
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the parser is waiting for the next itemIndicates the parser is waiting for a separatorIndicates the parser is has seen a minus to start an item, but doesn't know yet if it is part of a number or part of a symbolIndicates the parser is reading a numberIndicates the parser is reading a StringIndicates the parser is reading a symbolIndicates the parser is skipping a block commentIndicates the parser is skipping a line comment -
Method Summary
Modifier and TypeMethodDescriptionstatic Parser.StateReturns the enum constant of this class with the specified name.static Parser.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AwaitingItem
Indicates the parser is waiting for the next item -
ReadingNumber
Indicates the parser is reading a number -
ReadingSymbol
Indicates the parser is reading a symbol -
ReadingString
Indicates the parser is reading a String -
AwaitingSeparator
Indicates the parser is waiting for a separator -
SkippingLineComment
Indicates the parser is skipping a line comment -
SkippingBlockComment
Indicates the parser is skipping a block comment -
GotMinus
Indicates the parser is has seen a minus to start an item, but doesn't know yet if it is part of a number or part of a symbol
-
-
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
-