public abstract class TemplateAwareExpressionParser extends Object implements ExpressionParser
Constructor and Description |
---|
TemplateAwareExpressionParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract Expression |
doParseExpression(String expressionString,
ParserContext context)
Actually parse the expression string and return an Expression object.
|
Expression |
parseExpression(String expressionString)
Parse the expression string and return an Expression object you can use for repeated evaluation.
|
Expression |
parseExpression(String expressionString,
ParserContext context)
Parse the expression string and return an Expression object you can use for repeated evaluation.
|
public Expression parseExpression(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(String expressionString, 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(String expressionString, 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