public class ExpressionVariable extends Object
Constructor and Description |
---|
ExpressionVariable(String name,
String valueExpression)
Creates a new expression variable.
|
ExpressionVariable(String name,
String valueExpression,
ParserContext parserContext)
Creates a new expression variable with a populated parser context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the variable name.
|
ParserContext |
getParserContext()
Returns the parser context to use to parse the variable's value expression.
|
String |
getValueExpression()
Returns the expression that will be evaluated when the variable is referenced by its name in another expression.
|
int |
hashCode() |
String |
toString() |
public ExpressionVariable(String name, String valueExpression)
name
- the name of the variable, acting as an convenient alias (required)valueExpression
- the value expression (required)public ExpressionVariable(String name, String valueExpression, ParserContext parserContext)
name
- the name of the variable, acting as an convenient alias (required)valueExpression
- the value expression (required)parserContext
- the parser context to use to parse the value expression (optional)public String getName()
public String getValueExpression()
public ParserContext getParserContext()