类 TemplateAwareExpressionParser

java.lang.Object
cn.taketoday.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.
从以下版本开始:
4.0
作者:
Keith Donald, Juergen Hoeller, Andy Clement
  • 构造器详细资料

    • 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, @Nullable 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 parse
      context - 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, @Nullable ParserContext context) throws ParseException
      Actually parse the expression string and return an Expression object.
      参数:
      expressionString - the raw expression string to parse
      context - a context for influencing this expression parsing routine (optional)
      返回:
      an evaluator for the parsed expression
      抛出:
      ParseException - an exception occurred during parsing