MCPcopy Index your code
hub / github.com/apache/tomcat / parsePageDirective

Method parsePageDirective

java/org/apache/jasper/compiler/Parser.java:334–347  ·  view source on GitHub ↗
(Node parent)

Source from the content-addressed store, hash-verified

332 * Parses a page directive with the following syntax: PageDirective ::= ( S Attribute)*
333 */
334 private void parsePageDirective(Node parent) throws JasperException {
335 Attributes attrs = parseAttributes(true);
336 Node.PageDirective n = new Node.PageDirective(attrs, start, parent);
337
338 /*
339 * A page directive may contain multiple 'import' attributes, each of which consists of a comma-separated list
340 * of package names. Store each list with the node, where it is parsed.
341 */
342 for (int i = 0; i < attrs.getLength(); i++) {
343 if ("import".equals(attrs.getQName(i))) {
344 n.addImport(attrs.getValue(i));
345 }
346 }
347 }
348
349 /*
350 * Parses an include directive with the following syntax: IncludeDirective ::= ( S Attribute)*

Callers 2

parseDirectiveMethod · 0.95
parseXMLDirectiveMethod · 0.95

Calls 6

parseAttributesMethod · 0.95
addImportMethod · 0.95
getLengthMethod · 0.65
equalsMethod · 0.65
getValueMethod · 0.65
getQNameMethod · 0.45

Tested by

no test coverage detected