org.springframework.binding.expression
Interface ExpressionParser

All Known Implementing Classes:
AbstractExpressionParser, BeanWrapperExpressionParser, ELExpressionParser, OgnlExpressionParser, WebFlowELExpressionParser, WebFlowOgnlExpressionParser

public interface ExpressionParser

Parses expression strings into compiled expressions that can be evaluated. Supports parsing templates as well as standard expression strings.

Author:
Keith Donald

Method Summary
 Expression parseExpression(String expressionString, ParserContext context)
          Parse the expression string and return a compiled Expression object you can use for evaluation.
 

Method Detail

parseExpression

Expression parseExpression(String expressionString,
                           ParserContext context)
                           throws ParserException
Parse the expression string and return a compiled Expression object you can use for evaluation. Some examples:
     3 + 4
     name.firstName
 

Parameters:
expressionString - 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