Class SExprPrinter
java.lang.Object
com.google.common.css.compiler.passes.CodePrinter
com.google.common.css.compiler.passes.SExprPrinter
- All Implemented Interfaces:
CssCompilerPass
Build up an s-expression corresponding to the AST for debugging purposes.
-
Constructor Summary
ConstructorsConstructorDescriptionSExprPrinter(CssNode subtree) A S-Expr printer forCssNodeinstances.SExprPrinter(CssNode subtree, boolean includeHashCodes, boolean withLocationAnnotation) A S-Expr printer forCssNodeinstances.SExprPrinter(CssTree tree) A S-Expr printer forCssTreeinstances.SExprPrinter(CssTree tree, boolean includeHashCodes, boolean withLocationAnnotation) A S-Expr printer forCssTreeinstances. -
Method Summary
Modifier and TypeMethodDescriptionprotected CssTreeVisitorcreateVisitor(VisitController visitController, CodeBuffer codeBuffer) Constructs the visitor required by the subclass.static Stringstatic Stringstatic Stringstatic StringvoidrunPass()Methods inherited from class com.google.common.css.compiler.passes.CodePrinter
getOutputBuffer, resetBuffer, setPreserveMarkedComments, visit
-
Constructor Details
-
SExprPrinter
A S-Expr printer forCssNodeinstances. -
SExprPrinter
A S-Expr printer forCssTreeinstances. -
SExprPrinter
A S-Expr printer forCssNodeinstances.- Parameters:
includeHashCodes- boolean switch to include hash code for node or not.withLocationAnnotation- boolean switch to include source code location or not.
-
SExprPrinter
A S-Expr printer forCssTreeinstances.- Parameters:
includeHashCodes- boolean switch to include hash code for node or not.withLocationAnnotation- boolean switch to include source code location or not.
-
-
Method Details
-
createVisitor
Description copied from class:CodePrinterConstructs the visitor required by the subclass. This visitor'senter*methods will be called after the source map generator'sstartSourceMappingmethod and before itsendSourceMappingmethod.- Specified by:
createVisitorin classCodePrinter
-
runPass
public void runPass() -
print
-
print
-
print
-
print
-