|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.CssTreeVisitor
enterTree
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
public java.lang.String getCompactPrintedString()
getCompactPrintedString
in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter
public void leaveTree(com.google.gwt.thirdparty.common.css.compiler.ast.CssRootNode root)
leaveTree
in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitor
leaveTree
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
public void runPass()
runPass
in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
runPass
in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter
public boolean enterConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode node)
enterConditionalBlock
in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitor
enterConditionalBlock
in class com.google.gwt.thirdparty.common.css.compiler.passes.CompactPrinter
public void leaveConditionalBlock(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalBlockNode block)
leaveConditionalBlock
in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitor
leaveConditionalBlock
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
public boolean enterConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
enterConditionalRule
in interface com.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
enterConditionalRule
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
public void leaveConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node)
leaveConditionalRule
in interface com.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
leaveConditionalRule
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
protected 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 |