Package com.igormaznitsa.jcp.expression
Enum ExpressionParser.SpecialItem
java.lang.Object
java.lang.Enum<ExpressionParser.SpecialItem>
com.igormaznitsa.jcp.expression.ExpressionParser.SpecialItem
- All Implemented Interfaces:
ExpressionItem
,Serializable
,Comparable<ExpressionParser.SpecialItem>
- Enclosing class:
ExpressionParser
public static enum ExpressionParser.SpecialItem
extends Enum<ExpressionParser.SpecialItem>
implements ExpressionItem
The enumeration describes some special items which can be met in the expression
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the priority of the itemGet the type of the itemstatic ExpressionParser.SpecialItem
Returns the enum constant of this type with the specified name.static ExpressionParser.SpecialItem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BRACKET_OPENING
-
BRACKET_CLOSING
-
COMMA
-
-
Constructor Details
-
SpecialItem
private SpecialItem()
-
-
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
-
getExpressionItemPriority
Description copied from interface:ExpressionItem
Get the priority of the item- Specified by:
getExpressionItemPriority
in interfaceExpressionItem
- Returns:
- the item priority, must not be null
-
getExpressionItemType
Description copied from interface:ExpressionItem
Get the type of the item- Specified by:
getExpressionItemType
in interfaceExpressionItem
- Returns:
- the item type
-