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

Method addImport

java/org/apache/jasper/compiler/Node.java:714–727  ·  view source on GitHub ↗

Parses the comma-separated list of class or package names in the given attribute value and adds each component to this PageDirective's vector of imported classes and packages. @param value A comma-separated string of imports.

(String value)

Source from the content-addressed store, hash-verified

712 * @param value A comma-separated string of imports.
713 */
714 public void addImport(String value) {
715 int start = 0;
716 int index;
717 while ((index = value.indexOf(',', start)) != -1) {
718 imports.add(validateImport(value.substring(start, index)));
719 start = index + 1;
720 }
721 if (start == 0) {
722 // No comma found
723 imports.add(validateImport(value));
724 } else {
725 imports.add(validateImport(value.substring(start)));
726 }
727 }
728
729 /**
730 * Returns the list of imported classes and packages.

Callers 2

parsePageDirectiveMethod · 0.95

Calls 3

validateImportMethod · 0.95
addMethod · 0.65
indexOfMethod · 0.45

Tested by 1