|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.binding.expression.support.AbstractExpressionParser
public abstract class AbstractExpressionParser
Abstract base class for expression parsers.
Constructor Summary | |
---|---|
AbstractExpressionParser()
|
Method Summary | |
---|---|
protected abstract Expression |
doParseExpression(java.lang.String expressionString)
Template method for parsing a filtered expression string. |
protected abstract SettableExpression |
doParseSettableExpression(java.lang.String expressionString)
Template method for parsing a filtered settable expression string. |
java.lang.String |
getExpressionPrefix()
Returns the configured expression delimiter prefix. |
java.lang.String |
getExpressionSuffix()
Returns the expression delimiter suffix. |
boolean |
isDelimitedExpression(java.lang.String expressionString)
Check whether or not given criteria are expressed as an 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. |
void |
setExpressionPrefix(java.lang.String expressionPrefix)
Sets the expression delimiter prefix. |
void |
setExpressionSuffix(java.lang.String expressionSuffix)
Sets the expression delimiter suffix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractExpressionParser()
Method Detail |
---|
public java.lang.String getExpressionPrefix()
public void setExpressionPrefix(java.lang.String expressionPrefix)
public java.lang.String getExpressionSuffix()
public void setExpressionSuffix(java.lang.String expressionSuffix)
public boolean isDelimitedExpression(java.lang.String expressionString)
isDelimitedExpression
in interface ExpressionParser
expressionString
- the proposed expression string
public final Expression parseExpression(java.lang.String expressionString) throws ParserException
ExpressionParser
parseExpression
in interface ExpressionParser
expressionString
- the parseable expression string
ParserException
- an exception occured during parsingpublic final SettableExpression parseSettableExpression(java.lang.String expressionString) throws ParserException, java.lang.UnsupportedOperationException
ExpressionParser
parseSettableExpression
in interface ExpressionParser
expressionString
- the parseable expression string
ParserException
- an exception occured during parsing
java.lang.UnsupportedOperationException
- this parser does not support settable expressionsprotected abstract Expression doParseExpression(java.lang.String expressionString) throws ParserException
expressionString
- the expression string
ParserException
- an exception occured during parsingprotected abstract SettableExpression doParseSettableExpression(java.lang.String expressionString) throws ParserException, java.lang.UnsupportedOperationException
expressionString
- the expression string
ParserException
- an exception occured during parsing
java.lang.UnsupportedOperationException
- this parser does not support settable expressions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |