Class ELParser

java.lang.Object
io.micronaut.el.parser.ELParser

public final class ELParser extends Object
The parser of the Jakarta Expression Language grammar collected in the section 1.26 of the specification.

The parser is a recursive descent implementation of the grammar, with the operator precedence described in the section 1.16 of the specification.

Since:
1.0
Author:
Denis Stepanov
  • Method Details

    • parse

      public static ELNode parse(String expression)
      Parses an expression, which can be a literal-expression, an eval-expression or a composite expression.
      Parameters:
      expression - The expression
      Returns:
      The parsed expression
    • parseEval

      public static ELNode parseEval(String expression)
      Parses an expression that must consist of a single eval-expression, as required for a method expression by the section 1.2.3 of the specification.
      Parameters:
      expression - The expression
      Returns:
      The parsed expression