Class TextOptimizer

java.lang.Object
org.apache.jasper.compiler.TextOptimizer

public class TextOptimizer extends Object
Provides optimizations for text nodes in JSP pages.
  • Constructor Details

    • TextOptimizer

      public TextOptimizer()
      Constructs a new TextOptimizer. This utility class should not be instantiated.
  • Method Details

    • 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 compiler
      page - the page node tree
      Throws:
      JasperException - if an error occurs during optimization