Package com.igormaznitsa.jcp.expression
Enum ExpressionParser.ParserState
- java.lang.Object
-
- java.lang.Enum<ExpressionParser.ParserState>
-
- com.igormaznitsa.jcp.expression.ExpressionParser.ParserState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExpressionParser.ParserState>
- Enclosing class:
- ExpressionParser
private static enum ExpressionParser.ParserState extends java.lang.Enum<ExpressionParser.ParserState>
The enumeration describes inside states of the parses
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOAT_NUMBER
HEX_NUMBER
NUMBER
OPERATOR
SPECIAL_CHAR
STRING
VALUE_OR_FUNCTION
WAIT
-
Constructor Summary
Constructors Modifier Constructor Description private
ParserState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpressionParser.ParserState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ExpressionParser.ParserState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WAIT
public static final ExpressionParser.ParserState WAIT
-
NUMBER
public static final ExpressionParser.ParserState NUMBER
-
HEX_NUMBER
public static final ExpressionParser.ParserState HEX_NUMBER
-
FLOAT_NUMBER
public static final ExpressionParser.ParserState FLOAT_NUMBER
-
STRING
public static final ExpressionParser.ParserState STRING
-
SPECIAL_CHAR
public static final ExpressionParser.ParserState SPECIAL_CHAR
-
VALUE_OR_FUNCTION
public static final ExpressionParser.ParserState VALUE_OR_FUNCTION
-
OPERATOR
public static final ExpressionParser.ParserState OPERATOR
-
-
Method Detail
-
values
public static ExpressionParser.ParserState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExpressionParser.ParserState c : ExpressionParser.ParserState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpressionParser.ParserState valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-