类 TemplateAwareExpressionParser

    • 方法详细资料

      • 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 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,
                                                        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