Enum TemplateEngine.ExpressionType
java.lang.Object
java.lang.Enum<TemplateEngine.ExpressionType>
org.apache.commons.jexl3.internal.TemplateEngine.ExpressionType
- All Implemented Interfaces:
Serializable
,Comparable<TemplateEngine.ExpressionType>
- Enclosing class:
TemplateEngine
Types of expressions.
Each instance carries a counter index per (composite sub-) template expression type.
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComposite expressions are not counted, index -1.Constant TemplateExpression, count index 0.Deferred TemplateExpression, count index 2.Immediate TemplateExpression, count index 1.Nested (which are deferred) expressions, count index 2. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The index in arrays of TemplateExpression counters for composite expressions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
getIndex()
Returns the enum constant of this type with the specified name.static TemplateEngine.ExpressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONSTANT
Constant TemplateExpression, count index 0. -
IMMEDIATE
Immediate TemplateExpression, count index 1. -
DEFERRED
Deferred TemplateExpression, count index 2. -
NESTED
Nested (which are deferred) expressions, count index 2. -
COMPOSITE
Composite expressions are not counted, index -1.
-
-
Field Details
-
index
private final int indexThe index in arrays of TemplateExpression counters for composite expressions.
-
-
Constructor Details
-
ExpressionType
private ExpressionType(int idx) Creates an ExpressionType.- Parameters:
idx
- the index for this type in counters arrays.
-
-
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
-
getIndex
int getIndex()- Returns:
- the index member
-