接口 ExpressionParser

    • 方法详细资料

      • parseExpression

        Expression parseExpression​(String expressionString)
                            throws ParseException
        Parse the expression string and return an Expression object you can use for repeated evaluation.

        Some examples:

             3 + 4
             name.firstName
         
        参数:
        expressionString - the raw expression string to parse
        返回:
        an evaluator for the parsed expression
        抛出:
        ParseException - an exception occurred during parsing
      • parseExpression

        Expression parseExpression​(String expressionString,
                                   ParserContext context)
                            throws ParseException
        Parse the expression string and return an Expression object you can use for repeated evaluation.

        Some examples:

             3 + 4
             name.firstName
         
        参数:
        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