org.springframework.binding.expression.spel
Class SpringELExpressionParser
java.lang.Object
org.springframework.binding.expression.spel.SpringELExpressionParser
- All Implemented Interfaces:
- ExpressionParser
- Direct Known Subclasses:
- WebFlowSpringELExpressionParser
public class SpringELExpressionParser
- extends java.lang.Object
- implements ExpressionParser
Adapt the Spring EL SpelExpressionParser
to the Spring Binding
ExpressionParser
contract.
- Since:
- 2.1.0
- Author:
- Rossen Stoyanchev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringELExpressionParser
public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser)
SpringELExpressionParser
public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser,
ConversionService conversionService)
getConversionService
public ConversionService getConversionService()
addPropertyAccessor
public void addPropertyAccessor(org.springframework.expression.PropertyAccessor propertyAccessor)
parseExpression
public Expression parseExpression(java.lang.String expression,
ParserContext context)
throws ParserException
- Description copied from interface:
ExpressionParser
- Parse the expression string and return a compiled Expression object you can use for evaluation. Some examples:
3 + 4
name.firstName
- Specified by:
parseExpression
in interface ExpressionParser
- Parameters:
expression
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)
- Returns:
- an evaluator for the parsed expression
- Throws:
ParserException
- an exception occurred during parsing
createSpringELExpression
protected SpringELExpression createSpringELExpression(java.util.Map<java.lang.String,Expression> expressionVars,
org.springframework.expression.Expression spelExpression,
java.lang.Class<?> expectedResultType,
org.springframework.core.convert.ConversionService conversionService)
- Create the
SpringELExpression
.