Class ProcessComponents<T>
java.lang.Object
com.google.common.css.compiler.ast.DefaultTreeVisitor
com.google.common.css.compiler.passes.ProcessComponents<T>
- All Implemented Interfaces:
AtRuleHandler,CssCompilerPass,CssTreeVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionProcessComponents(MutatingVisitController visitController, ErrorManager errorManager) Creates a new pass to process components for the given visit controller, using the given error manager, while ignoring chunks.ProcessComponents(MutatingVisitController visitController, ErrorManager errorManager, Map<String, T> fileToChunk) Creates a new pass to process components for the given visit controller, using the given error manager, while maintaining the chunk ids on the nodes created in the process according to the given map from files to chunks. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled before visiting aCssClassSelectorNode's sub treesbooleanCalled before visiting aCssComponentNode's sub treesbooleanCalled before visiting aCssProvideNode's sub treesvoidrunPass()Methods inherited from class com.google.common.css.compiler.ast.DefaultTreeVisitor
enterArgumentNode, enterAttributeSelector, enterBlock, enterCharSet, enterCombinator, enterCompositeValueNode, enterCompositeValueNodeOperator, enterConditionalBlock, enterConditionalRule, enterDeclaration, enterDeclarationBlock, enterDefinition, enterFontFace, enterForLoop, enterFunctionNode, enterIdSelector, enterImportBlock, enterImportRule, enterKey, enterKeyBlock, enterKeyframeRuleset, enterKeyframesRule, enterMediaRule, enterMediaTypeListDelimiter, enterMixin, enterMixinDefinition, enterPageRule, enterPageSelector, enterPropertyValue, enterPseudoClass, enterPseudoElement, enterRequireNode, enterRuleset, enterSelector, enterSelectorBlock, enterTree, enterUnknownAtRule, enterValueNode, leaveArgumentNode, leaveAttributeSelector, leaveBlock, leaveCharSet, 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
-
Constructor Details
-
ProcessComponents
Creates a new pass to process components for the given visit controller, using the given error manager, while ignoring chunks. -
ProcessComponents
public ProcessComponents(MutatingVisitController visitController, ErrorManager errorManager, @Nullable Map<String, T> fileToChunk) Creates a new pass to process components for the given visit controller, using the given error manager, while maintaining the chunk ids on the nodes created in the process according to the given map from files to chunks.
-
-
Method Details
-
enterProvideNode
Description copied from interface:AtRuleHandlerCalled before visiting aCssProvideNode's sub trees- Specified by:
enterProvideNodein interfaceAtRuleHandler- Overrides:
enterProvideNodein classDefaultTreeVisitor- Parameters:
node- node
-
enterComponent
Description copied from interface:AtRuleHandlerCalled before visiting aCssComponentNode's sub trees- Specified by:
enterComponentin interfaceAtRuleHandler- Overrides:
enterComponentin classDefaultTreeVisitor- Parameters:
node- node
-
enterClassSelector
Description copied from interface:CssTreeVisitorCalled before visiting aCssClassSelectorNode's sub trees- Specified by:
enterClassSelectorin interfaceCssTreeVisitor- Overrides:
enterClassSelectorin classDefaultTreeVisitor
-
runPass
public void runPass()- Specified by:
runPassin interfaceCssCompilerPass
-