Spring Web Flow

org.springframework.binding.expression.spel
Class SpringELExpressionParser

java.lang.Object
  extended by 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

Constructor Summary
SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser)
           
SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser, ConversionService conversionService)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringELExpressionParser

public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser)

SpringELExpressionParser

public SpringELExpressionParser(org.springframework.expression.spel.standard.SpelExpressionParser expressionParser,
                                ConversionService conversionService)
Method Detail

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 parse
parserContext - a context for influencing this expression parsing routine (optional)
Returns:
an evaluator for the parsed expression
Throws:
ParserException - an exception occurred during parsing

Spring Web Flow