public class CssNodeCloner extends CssVisitor
UNMODIFIABLE_CONTEXT
Modifier and Type | Method and Description |
---|---|
static <T extends CssNode> |
clone(Class<T> clazz,
List<T> nodes)
Clone a list of nodes.
|
static <T extends CssNode> |
clone(Class<T> clazz,
T node)
Clone a single node.
|
void |
endVisit(CssMediaRule x,
Context ctx) |
void |
endVisit(CssNoFlip x,
Context ctx) |
void |
endVisit(CssStylesheet x,
Context ctx) |
boolean |
visit(CssDef x,
Context ctx) |
boolean |
visit(CssEval x,
Context ctx) |
boolean |
visit(CssExternalSelectors x,
Context ctx) |
boolean |
visit(CssFontFace x,
Context ctx) |
boolean |
visit(CssIf x,
Context ctx)
A CssIf has two lists of nodes, so we want to handle traversal in this
visitor.
|
boolean |
visit(CssMediaRule x,
Context ctx) |
boolean |
visit(CssNoFlip x,
Context ctx) |
boolean |
visit(CssPageRule x,
Context ctx) |
boolean |
visit(CssProperty x,
Context ctx) |
boolean |
visit(CssRule x,
Context ctx) |
boolean |
visit(CssSelector x,
Context ctx) |
boolean |
visit(CssSprite x,
Context ctx) |
boolean |
visit(CssStylesheet x,
Context ctx) |
boolean |
visit(CssUnknownAtRule x,
Context ctx) |
boolean |
visit(CssUrl x,
Context ctx) |
accept, accept, acceptWithInsertRemove, doAccept, doAccept, doAcceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit
public static <T extends CssNode> List<T> clone(Class<T> clazz, List<T> nodes)
public void endVisit(CssMediaRule x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssNoFlip x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssStylesheet x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssDef x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssEval x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssExternalSelectors x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssIf x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssMediaRule x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssNoFlip x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssPageRule x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssProperty x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssFontFace x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssRule x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssSelector x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssSprite x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssStylesheet x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssUrl x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic boolean visit(CssUnknownAtRule x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitCopyright © 2018. All rights reserved.