org.springframework.binding.expression
Interface ExpressionParser

All Known Implementing Classes:
AbstractExpressionParser, BeanWrapperExpressionParser, OgnlExpressionParser

public interface ExpressionParser

Parses expression strings, returing a configured evaluator instance capable of performing parsed expression evaluation in a thread safe way.

Author:
Keith Donald

Method Summary
 boolean isDelimitedExpression(java.lang.String expressionString)
          Is this expression string delimited in a manner that indicates it is a parseable expression? For example "${expression}".
 Expression parseExpression(java.lang.String expressionString)
          Parse the provided expression string, returning an evaluator capable of evaluating it against input.
 SettableExpression parseSettableExpression(java.lang.String expressionString)
          Parse the provided settable expression string, returning an evaluator capable of evaluating its value as well as setting its value.
 

Method Detail

isDelimitedExpression

boolean isDelimitedExpression(java.lang.String expressionString)
Is this expression string delimited in a manner that indicates it is a parseable expression? For example "${expression}".

Parameters:
expressionString - the proposed expression string
Returns:
true if yes, false if not

parseExpression

Expression parseExpression(java.lang.String expressionString)
                           throws ParserException
Parse the provided expression string, returning an evaluator capable of evaluating it against input.

Parameters:
expressionString - the parseable expression string
Returns:
the evaluator for the parsed expression
Throws:
ParserException - an exception occured during parsing

parseSettableExpression

SettableExpression parseSettableExpression(java.lang.String expressionString)
                                           throws ParserException,
                                                  java.lang.UnsupportedOperationException
Parse the provided settable expression string, returning an evaluator capable of evaluating its value as well as setting its value.

Parameters:
expressionString - the parseable expression string
Returns:
the evaluator for the parsed expression
Throws:
ParserException - an exception occured during parsing
java.lang.UnsupportedOperationException - this parser does not support settable expressions


Copyright © 2009 Spring Framework. All Rights Reserved.