public class ClassNamesCollector
extends com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
Constructor and Description |
---|
ClassNamesCollector() |
Modifier and Type | Method and Description |
---|---|
boolean |
enterClassSelector(com.google.gwt.thirdparty.common.css.compiler.ast.CssClassSelectorNode classSelector) |
Set<String> |
getClassNames(com.google.gwt.thirdparty.common.css.compiler.ast.CssTree tree,
Set<JClassType> imports)
Extract all CSS class names in the provided stylesheet, modulo those
imported from another context.
|
enterArgumentNode, enterAttributeSelector, enterBlock, enterCombinator, enterComponent, enterCompositeValueNode, enterCompositeValueNodeOperator, enterConditionalBlock, enterConditionalRule, enterDeclaration, enterDeclarationBlock, enterDefinition, enterFontFace, 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, 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
public Set<String> getClassNames(com.google.gwt.thirdparty.common.css.compiler.ast.CssTree tree, Set<JClassType> imports)
public boolean enterClassSelector(com.google.gwt.thirdparty.common.css.compiler.ast.CssClassSelectorNode classSelector)
enterClassSelector
in interface com.google.gwt.thirdparty.common.css.compiler.ast.CssTreeVisitor
enterClassSelector
in class com.google.gwt.thirdparty.common.css.compiler.ast.DefaultTreeVisitor
Copyright © 2018. All rights reserved.