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)
| 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 | } |
no test coverage detected