| 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)* |