public class SpringELExpressionParser extends java.lang.Object implements ExpressionParser
SpelExpressionParser to the Spring Binding
ExpressionParser contract.| 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) |
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. |
ConversionService |
getConversionService() |
Expression |
parseExpression(java.lang.String expression,
ParserContext context)
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 expression, ParserContext context) throws ParserException
ExpressionParser
3 + 4
name.firstName
parseExpression in interface ExpressionParserexpression - the raw expression string to parsecontext - a context for influencing this expression parsing routine (optional)ParserException - an exception occurred during parsingprotected 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)
SpringELExpression.
Note: as of 2.4.8, this method is not invoked when a
SimpleParserContext is passed in, which is mainly the case when using
SpEL for data binding. In those scenarios, the configuration options are
limited to the use of property accessors and a ConversionService.