Package com.igormaznitsa.jcp.expression
Class Variable
- java.lang.Object
-
- com.igormaznitsa.jcp.expression.Variable
-
- All Implemented Interfaces:
ExpressionItem
public final class Variable extends java.lang.Object implements ExpressionItem
The class describes an expression variable
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringvariableNameThe variable contains the expression variable name
-
Constructor Summary
Constructors Constructor Description Variable(java.lang.String varName)The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionItemPrioritygetExpressionItemPriority()Get the expression item priorityExpressionItemTypegetExpressionItemType()Get the expression item typejava.lang.StringgetName()Get the variable namejava.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the variable name- Returns:
- the name saved by the object
-
getExpressionItemType
public ExpressionItemType getExpressionItemType()
Get the expression item type- Specified by:
getExpressionItemTypein interfaceExpressionItem- Returns:
- it returns only ExpressionItemType.VARIABLE
-
getExpressionItemPriority
public ExpressionItemPriority getExpressionItemPriority()
Get the expression item priority- Specified by:
getExpressionItemPriorityin interfaceExpressionItem- Returns:
- it returns only ExpressionItemPriority.VALUE
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-