Package com.igormaznitsa.jcp.expression
Class Variable
java.lang.Object
com.igormaznitsa.jcp.expression.Variable
- All Implemented Interfaces:
ExpressionItem
The class describes an expression variable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The variable contains the expression variable name -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
variableName
The variable contains the expression variable name
-
-
Constructor Details
-
Variable
The constructor- Parameters:
varName
- the variable name, it must not be null
-
-
Method Details
-
getName
Get the variable name- Returns:
- the name saved by the object
-
getExpressionItemType
Get the expression item type- Specified by:
getExpressionItemType
in interfaceExpressionItem
- Returns:
- it returns only ExpressionItemType.VARIABLE
-
getExpressionItemPriority
Get the expression item priority- Specified by:
getExpressionItemPriority
in interfaceExpressionItem
- Returns:
- it returns only ExpressionItemPriority.VALUE
-
toString
-