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

Method addInclude

java/org/apache/jasper/compiler/Parser.java:364–375  ·  view source on GitHub ↗

Add a list of files. This is used for implementing include-prelude and include-coda of jsp-config element in web.xml

(Node parent, Collection<String> files)

Source from the content-addressed store, hash-verified

362 * web.xml
363 */
364 private void addInclude(Node parent, Collection<String> files) throws JasperException {
365 if (files != null) {
366 for (String file : files) {
367 AttributesImpl attrs = new AttributesImpl();
368 attrs.addAttribute("", "file", "file", "CDATA", file);
369
370 // Create a dummy Include directive node
371 Node includeNode = new Node.IncludeDirective(attrs, reader.mark(), parent);
372 processIncludeDirective(file, includeNode);
373 }
374 }
375 }
376
377 /*
378 * Parses a taglib directive with the following syntax: Directive ::= ( S Attribute)*

Callers 1

parseMethod · 0.95

Calls 3

addAttributeMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected