MCPcopy Create free account
hub / github.com/apache/tomcat / parse

Method parse

java/org/apache/el/parser/ELParser.java:21–27  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

doTestParserMethod · 0.95

Calls 2

CompositeExpressionMethod · 0.80
getMessageMethod · 0.65

Tested by 1

doTestParserMethod · 0.76