Parses an EL expression string into an AST node. @param ref the EL expression string to parse @return the root AST node of the parsed expression @throws ELException if the expression cannot be parsed
(String ref)
| 19 | * @throws ELException if the expression cannot be parsed |
| 20 | */ |
| 21 | public static Node parse(String ref) throws ELException { |
| 22 | try { |
| 23 | return new ELParser(new StringReader(ref)).CompositeExpression(); |
| 24 | } catch (ParseException pe) { |
| 25 | throw new ELException(pe.getMessage()); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | /* |
| 30 | * CompositeExpression Allow most flexible parsing, restrict by examining type of returned node |