|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter
com.google.gwt.resources.gss.CssPrinter
public class CssPrinter
Visitor that converts the AST to a String that can be evaluated as a Java expression.
For example, the following GSS code
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter |
|---|
sb |
| Constructor Summary | |
|---|---|
CssPrinter(com.google.gwt.thirdparty.common.css.compiler.ast.CssNode node)
|
|
CssPrinter(com.google.gwt.thirdparty.common.css.compiler.ast.CssTree tree)
|
|
| Method Summary | |
|---|---|
protected void |
appendValueNode(com.google.gwt.thirdparty.common.css.compiler.ast.CssValueNode node)
|
boolean |
enterConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode node)
|
boolean |
enterConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
|
boolean |
enterTree(com.google.gwt.thirdparty.common.css.compiler.ast.CssRootNode root)
|
java.lang.String |
getCompactPrintedString()
|
void |
leaveConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode block)
|
void |
leaveConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
|
void |
leaveTree(com.google.gwt.thirdparty.common.css.compiler.ast.CssRootNode root)
|
void |
runPass()
|
| Methods inherited from class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter |
|---|
deleteLastCharIfCharIs, enterArgumentNode, enterAttributeSelector, enterBlock, enterClassSelector, enterCombinator, enterCompositeValueNodeOperator, enterDeclaration, enterDeclarationBlock, enterDefinition, enterFontFace, enterFunctionNode, enterIdSelector, enterImportRule, enterKey, enterKeyframesRule, enterMediaRule, enterMediaTypeListDelimiter, enterPageRule, enterPageSelector, enterPseudoClass, enterPseudoElement, enterSelector, enterUnknownAtRule, enterValueNode, leaveCombinator, leaveCompositeValueNode, leaveDeclaration, leaveDeclarationBlock, leaveFunctionNode, leaveImportRule, leaveKey, leaveKeyBlock, leaveKeyframesRule, leaveMediaRule, leavePseudoClass, leaveSelector, leaveSelectorBlock, leaveUnknownAtRule, leaveValueNode, printCompactly, printCompactly |
| Methods inherited from class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor |
|---|
enterComponent, enterCompositeValueNode, enterImportBlock, enterKeyBlock, enterKeyframeRuleset, enterMixin, enterMixinDefinition, enterPropertyValue, enterProvideNode, enterRequireNode, enterRuleset, enterSelectorBlock, leaveArgumentNode, leaveAttributeSelector, leaveBlock, leaveClassSelector, leaveComponent, leaveCompositeValueNodeOperator, leaveDefinition, leaveFontFace, leaveIdSelector, leaveImportBlock, leaveKeyframeRuleset, leaveMediaTypeListDelimiter, leaveMixin, leaveMixinDefinition, leavePageRule, leavePageSelector, leavePropertyValue, leaveProvideNode, leavePseudoElement, leaveRequireNode, leaveRuleset, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CssPrinter(com.google.gwt.thirdparty.common.css.compiler.ast.CssTree tree)
public CssPrinter(com.google.gwt.thirdparty.common.css.compiler.ast.CssNode node)
| Method Detail |
|---|
public boolean enterTree(com.google.gwt.thirdparty.common.css.compiler.ast.CssRootNode root)
enterTree in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitorenterTree in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitorpublic java.lang.String getCompactPrintedString()
getCompactPrintedString in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinterpublic void leaveTree(com.google.gwt.thirdparty.common.css.compiler.ast.CssRootNode root)
leaveTree in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitorleaveTree in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitorpublic void runPass()
runPass in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPassrunPass in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinterpublic boolean enterConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode node)
enterConditionalBlock in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitorenterConditionalBlock in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinterpublic void leaveConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode block)
leaveConditionalBlock in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitorleaveConditionalBlock in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitorpublic boolean enterConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
enterConditionalRule in interface com.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandlerenterConditionalRule in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitorpublic void leaveConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
leaveConditionalRule in interface com.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandlerleaveConditionalRule in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitorprotected void appendValueNode(com.google.gwt.thirdparty.common.css.compiler.ast.CssValueNode node)
appendValueNode in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||