public abstract class AbstractExpressionParser extends java.lang.Object implements ExpressionParser
Constructor and Description |
---|
AbstractExpressionParser() |
Modifier and Type | Method and Description |
---|---|
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.
|
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