Class TextOptimizer
java.lang.Object
org.apache.jasper.compiler.TextOptimizer
Provides optimizations for text nodes in JSP pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
TextOptimizer
public TextOptimizer()Constructs a new TextOptimizer. This utility class should not be instantiated.
-
-
Method Details
-
concatenate
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
-