public class ExtractClassNamesVisitor extends CssVisitor
UNMODIFIABLE_CONTEXT
Modifier and Type | Method and Description |
---|---|
void |
endVisit(CssExternalSelectors x,
Context ctx) |
void |
endVisit(CssSelector x,
Context ctx) |
static Set<String> |
exec(CssStylesheet sheet)
Extract all CSS class names in the provided stylesheet.
|
static Set<String> |
exec(CssStylesheet sheet,
JClassType... imports)
Extract all CSS class names in the provided stylesheet, modulo those
imported from another context.
|
accept, accept, acceptWithInsertRemove, doAccept, doAccept, doAcceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public static Set<String> exec(CssStylesheet sheet)
public static Set<String> exec(CssStylesheet sheet, JClassType... imports)
public void endVisit(CssExternalSelectors x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssSelector x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitCopyright © 2018. All rights reserved.