Class CompactPrinter

java.lang.Object
com.google.common.css.compiler.passes.CodePrinter
com.google.common.css.compiler.passes.CompactPrinter
All Implemented Interfaces:
CssCompilerPass
Direct Known Subclasses:
TemplateCompactPrinter

public class CompactPrinter extends CodePrinter
A compact-printer for CssTree instances.
  • Constructor Details

  • Method Details

    • createVisitor

      protected CssTreeVisitor createVisitor(VisitController visitController, CodeBuffer buffer)
      Description copied from class: CodePrinter
      Constructs the visitor required by the subclass. This visitor's enter* methods will be called after the source map generator's startSourceMapping method and before its endSourceMapping method.
      Specified by:
      createVisitor in class CodePrinter
    • getCompactPrintedString

      public String getCompactPrintedString()
      Returns the CSS compacted printed output.
    • runPass

      public void runPass()
    • printCompactly

      public static String printCompactly(CssNode n)
    • printCompactly

      public static String printCompactly(CssTree t)