org.springframework.binding.expression.support
Class OgnlExpressionParser

java.lang.Object
  extended by org.springframework.binding.expression.support.AbstractExpressionParser
      extended by org.springframework.binding.expression.support.OgnlExpressionParser
All Implemented Interfaces:
ExpressionParser

public class OgnlExpressionParser
extends AbstractExpressionParser

An expression parser that parses Ognl expressions.

Author:
Keith Donald

Constructor Summary
OgnlExpressionParser()
           
 
Method Summary
 void addPropertyAccessor(java.lang.Class clazz, ognl.PropertyAccessor propertyAccessor)
          Add a property access strategy for the given class.
protected  Expression doParseExpression(java.lang.String expressionString)
          Template method for parsing a filtered expression string.
 SettableExpression doParseSettableExpression(java.lang.String expressionString)
          Template method for parsing a filtered settable expression string.
 
Methods inherited from class org.springframework.binding.expression.support.AbstractExpressionParser
getExpressionPrefix, getExpressionSuffix, isDelimitedExpression, parseExpression, parseSettableExpression, setExpressionPrefix, setExpressionSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OgnlExpressionParser

public OgnlExpressionParser()
Method Detail

doParseExpression

protected Expression doParseExpression(java.lang.String expressionString)
                                throws ParserException
Description copied from class: AbstractExpressionParser
Template method for parsing a filtered expression string. Subclasses should override.

Specified by:
doParseExpression in class AbstractExpressionParser
Parameters:
expressionString - the expression string
Returns:
the parsed expression
Throws:
ParserException - an exception occured during parsing

doParseSettableExpression

public SettableExpression doParseSettableExpression(java.lang.String expressionString)
                                             throws ParserException
Description copied from class: AbstractExpressionParser
Template method for parsing a filtered settable expression string. Subclasses should override.

Specified by:
doParseSettableExpression in class AbstractExpressionParser
Parameters:
expressionString - the expression string
Returns:
the parsed expression
Throws:
ParserException - an exception occured during parsing

addPropertyAccessor

public void addPropertyAccessor(java.lang.Class clazz,
                                ognl.PropertyAccessor propertyAccessor)
Add a property access strategy for the given class.

Parameters:
clazz - the class that contains properties needing access
propertyAccessor - the property access strategy


Copyright � 2004-2007. All Rights Reserved.