Class ExpressionVariable
java.lang.Object
org.springframework.binding.expression.ExpressionVariable
An expression variable.
- Author:
- Keith Donald
-
Constructor Summary
ConstructorDescriptionExpressionVariable
(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. -
Method Summary
-
Constructor Details
-
ExpressionVariable
Creates a new expression variable.- Parameters:
name
- the name of the variable, acting as an convenient alias (required)valueExpression
- the value expression (required)
-
ExpressionVariable
Creates a new expression variable with a populated parser context.- Parameters:
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)
-
-
Method Details
-
getName
Returns the variable name.- Returns:
- the variable name
-
getValueExpression
Returns the expression that will be evaluated when the variable is referenced by its name in another expression.- Returns:
- the expression value.
-
getParserContext
Returns the parser context to use to parse the variable's value expression.- Returns:
- the value expression parser context
-
equals
-
hashCode
public int hashCode() -
toString
-