com.google.gwt.resources.css.ast
Class CssVisitor
java.lang.Object
com.google.gwt.resources.css.ast.CssVisitor
- Direct Known Subclasses:
- ClassRenamer, CssGenerationVisitor, CssModVisitor, CssNodeCloner, DefsCollector, ExternalClassesCollector, ExtractClassNamesVisitor, RequirementsCollector, SubstitutionCollector, SubstitutionReplacer
public class CssVisitor
- extends java.lang.Object
The base class for visiting a CSS tree. Traversal is initiated with a call to
one of the accept methods. The default behavior of the
visit methods is to return true to indicate that
the calling node should traverse its descendant nodes.
|
Method Summary |
void |
accept(java.util.List<? extends CssNode> nodes)
|
|
accept(T node)
|
void |
acceptWithInsertRemove(java.util.List<? extends CssNode> nodes)
|
void |
endVisit(CssDef x,
Context ctx)
|
void |
endVisit(CssEval x,
Context ctx)
|
void |
endVisit(CssExternalSelectors 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(CssProperty x,
Context ctx)
|
void |
endVisit(CssRule x,
Context ctx)
|
void |
endVisit(CssSelector x,
Context ctx)
|
void |
endVisit(CssSprite x,
Context ctx)
|
void |
endVisit(CssStylesheet x,
Context ctx)
|
void |
endVisit(CssUnknownAtRule x,
Context ctx)
|
void |
endVisit(CssUrl x,
Context ctx)
|
boolean |
visit(CssDef x,
Context ctx)
|
boolean |
visit(CssEval x,
Context ctx)
|
boolean |
visit(CssExternalSelectors 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(CssStylesheet x,
Context ctx)
|
boolean |
visit(CssUnknownAtRule x,
Context ctx)
|
boolean |
visit(CssUrl x,
Context ctx)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CssVisitor
public CssVisitor()
accept
public final void accept(java.util.List<? extends CssNode> nodes)
accept
public final <T extends CssNode> T accept(T node)
acceptWithInsertRemove
public final void acceptWithInsertRemove(java.util.List<? extends CssNode> nodes)
endVisit
public void endVisit(CssDef x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssEval x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssExternalSelectors x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssIf x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssMediaRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssNoFlip x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssPageRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssProperty x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssSelector x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssSprite x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssStylesheet x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssUrl x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
endVisit
public void endVisit(CssUnknownAtRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
visit
public boolean visit(CssDef x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssEval x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssExternalSelectors x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssIf x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssMediaRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssNoFlip x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssPageRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssProperty x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssSelector x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssSprite x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssStylesheet x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssUrl x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns:
visit
public boolean visit(CssUnknownAtRule x,
Context ctx)
- Parameters:
x - the node being visitedctx - the context for the visit
- Returns: