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

Adapt the Spring EL SpelExpressionParser to the Spring Binding ExpressionParser contract.

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)
           
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.
 
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 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 parse
context - 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.


Spring Web Flow