Package com.google.gwt.resources.gss
Class BooleanConditionCollector
java.lang.Object
com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
com.google.gwt.resources.gss.ExtendedConditionalNodeVisitor
com.google.gwt.resources.gss.BooleanConditionCollector
- All Implemented Interfaces:
com.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
,com.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
,com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitor
public class BooleanConditionCollector
extends ExtendedConditionalNodeVisitor
implements com.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
Visitor that collects the simple boolean conditions that are mapped to configuration
properties.
@if (MY_PROPERTY) {
...
}
will be evaluated to true if and only if a configuration property with the same name is set
to the value "true":
<set-configuration-property name="MY_PROPERTY" value="true" />
-
Constructor Summary
ConstructorDescriptionBooleanConditionCollector
(com.google.gwt.thirdparty.common.css.compiler.ast.MutatingVisitController delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enterBooleanExpression
(com.google.gwt.thirdparty.common.css.compiler.ast.CssBooleanExpressionNode booleanExpressionNode) void
runPass()
Methods inherited from class com.google.gwt.resources.gss.ExtendedConditionalNodeVisitor
enterConditionalRule
Methods inherited from class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
enterArgumentNode, enterAttributeSelector, enterBlock, enterClassSelector, enterCombinator, enterComponent, enterCompositeValueNode, enterCompositeValueNodeOperator, enterConditionalBlock, enterDeclaration, enterDeclarationBlock, enterDefinition, enterFontFace, enterForLoop, enterFunctionNode, enterIdSelector, enterImportBlock, enterImportRule, enterKey, enterKeyBlock, enterKeyframeRuleset, enterKeyframesRule, enterMediaRule, enterMediaTypeListDelimiter, enterMixin, enterMixinDefinition, enterPageRule, enterPageSelector, enterPropertyValue, enterProvideNode, enterPseudoClass, enterPseudoElement, enterRequireNode, enterRuleset, enterSelector, enterSelectorBlock, enterTree, enterUnknownAtRule, enterValueNode, leaveArgumentNode, leaveAttributeSelector, leaveBlock, leaveClassSelector, leaveCombinator, leaveComponent, leaveCompositeValueNode, leaveCompositeValueNodeOperator, leaveConditionalBlock, leaveConditionalRule, leaveDeclaration, leaveDeclarationBlock, leaveDefinition, leaveFontFace, leaveForLoop, leaveFunctionNode, leaveIdSelector, leaveImportBlock, leaveImportRule, leaveKey, leaveKeyBlock, leaveKeyframeRuleset, leaveKeyframesRule, leaveMediaRule, leaveMediaTypeListDelimiter, leaveMixin, leaveMixinDefinition, leavePageRule, leavePageSelector, leavePropertyValue, leaveProvideNode, leavePseudoClass, leavePseudoElement, leaveRequireNode, leaveRuleset, leaveSelector, leaveSelectorBlock, leaveTree, leaveUnknownAtRule, leaveValueNode, visit
-
Constructor Details
-
BooleanConditionCollector
public BooleanConditionCollector(com.google.gwt.thirdparty.common.css.compiler.ast.MutatingVisitController delegate)
-
-
Method Details
-
enterBooleanExpression
public void enterBooleanExpression(com.google.gwt.thirdparty.common.css.compiler.ast.CssBooleanExpressionNode booleanExpressionNode) - Overrides:
enterBooleanExpression
in classExtendedConditionalNodeVisitor
-
getBooleanConditions
-
runPass
public void runPass()- Specified by:
runPass
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
-