public abstract class TemplateAwareExpressionParser extends java.lang.Object implements ExpressionParser
Constructor and Description |
---|
TemplateAwareExpressionParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract Expression |
doParseExpression(java.lang.String expressionString,
ParserContext context)
Actually parse the expression string and return an Expression object.
|
Expression |
parseExpression(java.lang.String expressionString)
Parse the expression string and return an Expression object you can use for repeated evaluation.
|
Expression |
parseExpression(java.lang.String expressionString,
ParserContext context)
Parse the expression string and return an Expression object you can use for repeated evaluation.
|
public Expression parseExpression(java.lang.String expressionString) throws ParseException
ExpressionParser
Some examples:
3 + 4 name.firstName
parseExpression
in interface ExpressionParser
expressionString
- the raw expression string to parseParseException
- an exception occurred during parsingpublic Expression parseExpression(java.lang.String expressionString, @Nullable ParserContext context) throws ParseException
ExpressionParser
Some examples:
3 + 4 name.firstName
parseExpression
in interface ExpressionParser
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)ParseException
- an exception occurred during parsingprotected abstract Expression doParseExpression(java.lang.String expressionString, @Nullable ParserContext context) throws ParseException
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)ParseException
- an exception occurred during parsing