public abstract class TemplateAwareExpressionParser extends Object implements ExpressionParser
| 构造器和说明 |
|---|
TemplateAwareExpressionParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
ExpressionParserSome examples:
3 + 4
name.firstName
parseExpression 在接口中 ExpressionParserexpressionString - the raw expression string to parseParseException - an exception occurred during parsingpublic Expression parseExpression(String expressionString, @Nullable ParserContext context) throws ParseException
ExpressionParserSome examples:
3 + 4
name.firstName
parseExpression 在接口中 ExpressionParserexpressionString - 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, @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