Package org.apache.jasper.compiler
Class TextOptimizer
- java.lang.Object
-
- org.apache.jasper.compiler.TextOptimizer
-
public class TextOptimizer extends java.lang.ObjectProvides optimizations for text nodes in JSP pages.
-
-
Constructor Summary
Constructors Constructor Description TextOptimizer()Constructs a new TextOptimizer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconcatenate(Compiler compiler, Node.Nodes page)Concatenates contiguous text nodes in the given page to reduce the number of write operations in the generated servlet code.
-
-
-
Method Detail
-
concatenate
public static void concatenate(Compiler compiler, Node.Nodes page) throws JasperException
Concatenates contiguous text nodes in the given page to reduce the number of write operations in the generated servlet code.- Parameters:
compiler- the JSP compilerpage- the page node tree- Throws:
JasperException- if an error occurs during optimization
-
-