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

Method concatenate

java/org/apache/jasper/compiler/TextOptimizer.java:136–143  ·  view source on GitHub ↗

Concatenates contiguous text nodes in the given page to reduce the number of write operations in the generated servlet code. @param compiler the JSP compiler @param page the page node tree @throws JasperException if an error occurs during optimization

(Compiler compiler, Node.Nodes page)

Source from the content-addressed store, hash-verified

134 * @throws JasperException if an error occurs during optimization
135 */
136 public static void concatenate(Compiler compiler, Node.Nodes page) throws JasperException {
137
138 TextCatVisitor v = new TextCatVisitor(compiler);
139 page.visit(v);
140
141 // Cleanup, in case the page ends with a template text
142 v.collectText();
143 }
144}

Callers 1

generateJavaMethod · 0.95

Calls 2

collectTextMethod · 0.95
visitMethod · 0.65

Tested by

no test coverage detected