Class ExpressionVariable
java.lang.Object
org.springframework.binding.expression.ExpressionVariable
An expression variable.
- Author:
- Keith Donald
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionVariable(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- 
ExpressionVariableCreates a new expression variable.- Parameters:
- name- the name of the variable, acting as an convenient alias (required)
- valueExpression- the value expression (required)
 
- 
ExpressionVariableCreates 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- 
getNameReturns the variable name.- Returns:
- the variable name
 
- 
getValueExpressionReturns the expression that will be evaluated when the variable is referenced by its name in another expression.- Returns:
- the expression value.
 
- 
getParserContextReturns the parser context to use to parse the variable's value expression.- Returns:
- the value expression parser context
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-