Package com.google.gwt.resources.gss
Class ValidateRuntimeConditionalNode
java.lang.Object
com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
com.google.gwt.resources.gss.ValidateRuntimeConditionalNode
- 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 ValidateRuntimeConditionalNode
extends com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
implements com.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
Visitor that validates runtime conditional node.
Runtime conditional node shouldn't contain any constant definitions nor external at-rule.
-
Constructor Summary
ConstructorDescriptionValidateRuntimeConditionalNode
(com.google.gwt.thirdparty.common.css.compiler.ast.VisitController visitController, com.google.gwt.thirdparty.common.css.compiler.ast.ErrorManager errorManager, boolean lenient) -
Method Summary
Modifier and TypeMethodDescriptionboolean
enterConditionalRule
(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node) boolean
enterDefinition
(com.google.gwt.thirdparty.common.css.compiler.ast.CssDefinitionNode node) boolean
enterUnknownAtRule
(com.google.gwt.thirdparty.common.css.compiler.ast.CssUnknownAtRuleNode node) void
leaveConditionalRule
(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node) void
runPass()
Methods inherited from class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
enterArgumentNode, enterAttributeSelector, enterBlock, enterClassSelector, enterCombinator, enterComponent, enterCompositeValueNode, enterCompositeValueNodeOperator, enterConditionalBlock, enterDeclaration, enterDeclarationBlock, 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, enterValueNode, leaveArgumentNode, leaveAttributeSelector, leaveBlock, leaveClassSelector, leaveCombinator, leaveComponent, leaveCompositeValueNode, leaveCompositeValueNodeOperator, leaveConditionalBlock, 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
-
ValidateRuntimeConditionalNode
public ValidateRuntimeConditionalNode(com.google.gwt.thirdparty.common.css.compiler.ast.VisitController visitController, com.google.gwt.thirdparty.common.css.compiler.ast.ErrorManager errorManager, boolean lenient)
-
-
Method Details
-
enterDefinition
public boolean enterDefinition(com.google.gwt.thirdparty.common.css.compiler.ast.CssDefinitionNode node) - Specified by:
enterDefinition
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
- Overrides:
enterDefinition
in classcom.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
-
enterUnknownAtRule
public boolean enterUnknownAtRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssUnknownAtRuleNode node) - Specified by:
enterUnknownAtRule
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
- Overrides:
enterUnknownAtRule
in classcom.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
-
enterConditionalRule
public boolean enterConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node) - Specified by:
enterConditionalRule
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
- Overrides:
enterConditionalRule
in classcom.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
-
leaveConditionalRule
public void leaveConditionalRule(com.google.gwt.thirdparty.common.css.compiler.ast.CssConditionalRuleNode node) - Specified by:
leaveConditionalRule
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.AtRuleHandler
- Overrides:
leaveConditionalRule
in classcom.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
-
runPass
public void runPass()- Specified by:
runPass
in interfacecom.google.gwt.thirdparty.common.css.compiler.ast.CssCompilerPass
-