类 TemplateAwareExpressionParser
- java.lang.Object
- org.springframework.expression.common.TemplateAwareExpressionParser
- 所有已实现的接口:
ExpressionParser
- 直接已知子类:
SpelExpressionParser
public abstract class TemplateAwareExpressionParser extends Object implements ExpressionParser
An expression parser that understands templates. It can be subclassed by expression parsers that do not offer first class support for templating.- 从以下版本开始:
- 3.0
- 作者:
- Keith Donald, Juergen Hoeller, Andy Clement
构造器概要
构造器 构造器 说明 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.
构造器详细资料
TemplateAwareExpressionParser
public TemplateAwareExpressionParser()
方法详细资料
parseExpression
public Expression parseExpression(String expressionString) throws ParseException
从接口复制的说明:ExpressionParser
Parse the expression string and return an Expression object you can use for repeated evaluation.Some examples:
3 + 4 name.firstName
- 指定者:
parseExpression
在接口中ExpressionParser
- 参数:
expressionString
- the raw expression string to parse- 返回:
- an evaluator for the parsed expression
- 抛出:
ParseException
- an exception occurred during parsing
parseExpression
public Expression parseExpression(String expressionString, ParserContext context) throws ParseException
从接口复制的说明:ExpressionParser
Parse the expression string and return an Expression object you can use for repeated evaluation.Some examples:
3 + 4 name.firstName
- 指定者:
parseExpression
在接口中ExpressionParser
- 参数:
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)- 返回:
- an evaluator for the parsed expression
- 抛出:
ParseException
- an exception occurred during parsing
doParseExpression
protected abstract Expression doParseExpression(String expressionString, ParserContext context) throws ParseException
Actually parse the expression string and return an Expression object.- 参数:
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)- 返回:
- an evaluator for the parsed expression
- 抛出:
ParseException
- an exception occurred during parsing