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
,java.io.Serializable
,java.lang.Comparable<ExpressionParser.SpecialItem>
- Enclosing class:
- ExpressionParser
public static enum ExpressionParser.SpecialItem extends java.lang.Enum<ExpressionParser.SpecialItem> implements ExpressionItem
The enumeration describes some special items which can be met in the expression
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRACKET_CLOSING
BRACKET_OPENING
COMMA
-
Constructor Summary
Constructors Modifier Constructor Description private
SpecialItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionItemPriority
getExpressionItemPriority()
Get the priority of the itemExpressionItemType
getExpressionItemType()
Get the type of the itemstatic ExpressionParser.SpecialItem
valueOf(java.lang.String name)
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 Detail
-
BRACKET_OPENING
public static final ExpressionParser.SpecialItem BRACKET_OPENING
-
BRACKET_CLOSING
public static final ExpressionParser.SpecialItem BRACKET_CLOSING
-
COMMA
public static final ExpressionParser.SpecialItem COMMA
-
-
Method Detail
-
values
public static ExpressionParser.SpecialItem[] 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.SpecialItem c : ExpressionParser.SpecialItem.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.SpecialItem 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
-
getExpressionItemPriority
public ExpressionItemPriority 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
public ExpressionItemType getExpressionItemType()
Description copied from interface:ExpressionItem
Get the type of the item- Specified by:
getExpressionItemType
in interfaceExpressionItem
- Returns:
- the item type
-
-