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

Method parseTagDirective

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

Source from the content-addressed store, hash-verified

542 * Parses a tag directive with the following syntax: PageDirective ::= ( S Attribute)*
543 */
544 private void parseTagDirective(Node parent) throws JasperException {
545 Attributes attrs = parseAttributes(true);
546 Node.TagDirective n = new Node.TagDirective(attrs, start, parent);
547
548 /*
549 * A page directive may contain multiple 'import' attributes, each of which consists of a comma-separated list
550 * of package names. Store each list with the node, where it is parsed.
551 */
552 for (int i = 0; i < attrs.getLength(); i++) {
553 if ("import".equals(attrs.getQName(i))) {
554 n.addImport(attrs.getValue(i));
555 }
556 }
557 }
558
559 /*
560 * Parses an attribute directive with the following syntax: AttributeDirective ::= ( 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