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.String
variableName
The 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 ExpressionItemPriority
getExpressionItemPriority()
Get the expression item priorityExpressionItemType
getExpressionItemType()
Get the expression item typejava.lang.String
getName()
Get the variable namejava.lang.String
toString()
-
-
-
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:
getExpressionItemType
in interfaceExpressionItem
- Returns:
- it returns only ExpressionItemType.VARIABLE
-
getExpressionItemPriority
public ExpressionItemPriority getExpressionItemPriority()
Get the expression item priority- Specified by:
getExpressionItemPriority
in interfaceExpressionItem
- Returns:
- it returns only ExpressionItemPriority.VALUE
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-