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