public class

CssVisitor

extends Object
java.lang.Object
   ↳ com.google.gwt.resources.css.ast.CssVisitor
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Fields
protected static final Context UNMODIFIABLE_CONTEXT
Public Constructors
CssVisitor()
Public Methods
final void accept(List<? extends CssNode> nodes)
final <T extends CssNode> T accept(T node)
final void acceptWithInsertRemove(List<? extends CssNode> nodes)
void endVisit(CssRule x, Context ctx)
void endVisit(CssNoFlip x, Context ctx)
void endVisit(CssDef x, Context ctx)
void endVisit(CssIf x, Context ctx)
void endVisit(CssSprite x, Context ctx)
void endVisit(CssEval x, Context ctx)
void endVisit(CssUrl x, Context ctx)
void endVisit(CssSelector x, Context ctx)
void endVisit(CssPageRule x, Context ctx)
void endVisit(CssStylesheet x, Context ctx)
void endVisit(CssUnknownAtRule x, Context ctx)
void endVisit(CssProperty x, Context ctx)
void endVisit(CssExternalSelectors x, Context ctx)
void endVisit(CssMediaRule x, Context ctx)
boolean visit(CssIf x, Context ctx)
boolean visit(CssStylesheet x, Context ctx)
boolean visit(CssProperty x, Context ctx)
boolean visit(CssPageRule x, Context ctx)
boolean visit(CssNoFlip x, Context ctx)
boolean visit(CssSelector x, Context ctx)
boolean visit(CssMediaRule x, Context ctx)
boolean visit(CssUnknownAtRule x, Context ctx)
boolean visit(CssDef x, Context ctx)
boolean visit(CssRule x, Context ctx)
boolean visit(CssEval x, Context ctx)
boolean visit(CssUrl x, Context ctx)
boolean visit(CssSprite x, Context ctx)
boolean visit(CssExternalSelectors x, Context ctx)
Protected Methods
void doAccept(List<? extends CssNode> list)
<T extends CssNode> T doAccept(T node)
void doAcceptWithInsertRemove(List<? extends CssNode> list)
final void doTraverse(CssNode node, Context ctx)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static final Context UNMODIFIABLE_CONTEXT

Public Constructors

public CssVisitor ()

Public Methods

public final void accept (List<? extends CssNode> nodes)

public final T accept (T node)

public final void acceptWithInsertRemove (List<? extends CssNode> nodes)

public void endVisit (CssRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssNoFlip x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssDef x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssIf x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssSprite x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssEval x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssUrl x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssSelector x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssPageRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssStylesheet x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssUnknownAtRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssProperty x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssExternalSelectors x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public void endVisit (CssMediaRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssIf x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssStylesheet x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssProperty x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssPageRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssNoFlip x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssSelector x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssMediaRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssUnknownAtRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssDef x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssRule x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssEval x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssUrl x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssSprite x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

public boolean visit (CssExternalSelectors x, Context ctx)

Parameters
x the node being visited
ctx the context for the visit

Protected Methods

protected void doAccept (List<? extends CssNode> list)

protected T doAccept (T node)

protected void doAcceptWithInsertRemove (List<? extends CssNode> list)

protected final void doTraverse (CssNode node, Context ctx)