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
Adapts the Spring EL SpelExpressionParser
to the Spring Binding ExpressionParser
interface.
- 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 expressionString,
ParserContext parserContext)
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:
expressionString
- the raw expression string to parseparserContext
- a context for influencing this expression parsing routine (optional)
- Returns:
- an evaluator for the parsed expression
- Throws:
ParserException
- an exception occurred during parsing