public class SpringELExpressionParser extends java.lang.Object implements ExpressionParser
Adapts the Spring EL SpelExpressionParser to the Spring Binding ExpressionParser interface.
| Constructor and Description |
|---|
SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser) |
SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser,
ConversionService conversionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyAccessor(org.springframework.expression.PropertyAccessor propertyAccessor) |
ConversionService |
getConversionService() |
Expression |
parseExpression(java.lang.String expressionString,
ParserContext parserContext)
Parse the expression string and return a compiled Expression object you can use for evaluation.
|
public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser)
public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser,
ConversionService conversionService)
public ConversionService getConversionService()
public void addPropertyAccessor(org.springframework.expression.PropertyAccessor propertyAccessor)
public Expression parseExpression(java.lang.String expressionString, ParserContext parserContext) throws ParserException
ExpressionParser
3 + 4
name.firstName
parseExpression in interface ExpressionParserexpressionString - the raw expression string to parseparserContext - a context for influencing this expression parsing routine (optional)ParserException - an exception occurred during parsing