|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.expression.support.AbstractExpressionParser
public abstract class AbstractExpressionParser
An expression parser that parses Ognl expressions.
Constructor Summary | |
---|---|
AbstractExpressionParser()
|
Method Summary | |
---|---|
protected abstract Expression |
doParseExpression(java.lang.String expressionString,
ParserContext context)
|
boolean |
getAllowDelimitedEvalExpressions()
Returns if this parser allows delimited eval expressions like ${foo.bar} . |
java.lang.String |
getExpressionPrefix()
Returns the configured expression delimiter prefix. |
java.lang.String |
getExpressionSuffix()
Returns the expression delimiter suffix. |
Expression |
parseExpression(java.lang.String expressionString,
ParserContext context)
Parse the expression string and return a compiled Expression object you can use for evaluation. |
protected java.util.Map<java.lang.String,Expression> |
parseVariableExpressions(ExpressionVariable[] variables)
|
void |
setAllowDelimitedEvalExpressions(boolean allowDelmitedEvalExpressions)
Sets if this parser allows eval expressions like ${foo.bar}. |
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 getAllowDelimitedEvalExpressions()
${foo.bar}
.
public void setAllowDelimitedEvalExpressions(boolean allowDelmitedEvalExpressions)
public Expression parseExpression(java.lang.String expressionString, ParserContext context) throws ParserException
ExpressionParser
3 + 4 name.firstName
parseExpression
in interface ExpressionParser
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)
ParserException
- an exception occurred during parsingprotected java.util.Map<java.lang.String,Expression> parseVariableExpressions(ExpressionVariable[] variables) throws ParserException
ParserException
protected abstract Expression doParseExpression(java.lang.String expressionString, ParserContext context) throws ParserException
ParserException
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |