public class CssGenerationVisitor extends CssVisitor
UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
CssGenerationVisitor(TextOutput out)
Constructor.
|
CssGenerationVisitor(TextOutput out,
boolean substituteDots)
Constructor for producing an abbreviated form of the template for use with
CssNode.toString() . |
Modifier and Type | Method and Description |
---|---|
void |
endVisit(CssFontFace x,
Context ctx) |
void |
endVisit(CssIf x,
Context ctx) |
void |
endVisit(CssMediaRule x,
Context ctx) |
void |
endVisit(CssNoFlip x,
Context ctx) |
void |
endVisit(CssPageRule x,
Context ctx) |
void |
endVisit(CssRule x,
Context ctx) |
void |
endVisit(CssUnknownAtRule x,
Context ctx) |
SortedMap<Integer,List<CssSubstitution>> |
getSubstitutionPositions() |
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) |
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(CssUrl x,
Context ctx) |
accept, accept, acceptWithInsertRemove, doAccept, doAccept, doAcceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, visit, visit, visit
public CssGenerationVisitor(TextOutput out)
out
- the output hondlerpublic CssGenerationVisitor(TextOutput out, boolean substituteDots)
CssNode.toString()
.out
- the output handlersubstituteDots
- if true
locations in the text output
where expression substitutions would normally occur are replaced
with a textual placeholderpublic void endVisit(CssFontFace x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssIf x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic 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(CssPageRule x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssRule x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic void endVisit(CssUnknownAtRule x, Context ctx)
endVisit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitpublic SortedMap<Integer,List<CssSubstitution>> getSubstitutionPositions()
public boolean visit(CssFontFace x, Context ctx)
visit
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(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(CssUrl x, Context ctx)
visit
in class CssVisitor
x
- the node being visitedctx
- the context for the visitCopyright © 2018. All rights reserved.