Class DefCollectorVisitor
java.lang.Object
com.google.gwt.resources.css.ast.CssVisitor
com.google.gwt.resources.converter.DefCollectorVisitor
public class DefCollectorVisitor
extends com.google.gwt.resources.css.ast.CssVisitor
GSS requires that constants are defined in upper case. This visitor will collect all existing
constants, create the GSS compatible name of each constant and returns a mapping of all
original names with the new generated name.
This visitor lists also all constant nodes.
-
Field Summary
Fields inherited from class com.google.gwt.resources.css.ast.CssVisitor
UNMODIFIABLE_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<com.google.gwt.resources.css.ast.CssDef>
boolean
visit
(com.google.gwt.resources.css.ast.CssDef x, com.google.gwt.resources.css.ast.Context ctx) boolean
visit
(com.google.gwt.resources.css.ast.CssEval x, com.google.gwt.resources.css.ast.Context ctx) boolean
visit
(com.google.gwt.resources.css.ast.CssUrl x, com.google.gwt.resources.css.ast.Context ctx) Methods inherited from class com.google.gwt.resources.css.ast.CssVisitor
accept, accept, acceptWithInsertRemove, doAccept, doAccept, doAcceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, 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
-
Constructor Details
-
DefCollectorVisitor
-
-
Method Details
-
getDefMapping
-
getConstantNodes
-
visit
public boolean visit(com.google.gwt.resources.css.ast.CssEval x, com.google.gwt.resources.css.ast.Context ctx) - Overrides:
visit
in classcom.google.gwt.resources.css.ast.CssVisitor
- Parameters:
x
- the node being visitedctx
- the context for the visit
-
visit
public boolean visit(com.google.gwt.resources.css.ast.CssDef x, com.google.gwt.resources.css.ast.Context ctx) - Overrides:
visit
in classcom.google.gwt.resources.css.ast.CssVisitor
- Parameters:
x
- the node being visitedctx
- the context for the visit
-
visit
public boolean visit(com.google.gwt.resources.css.ast.CssUrl x, com.google.gwt.resources.css.ast.Context ctx) - Overrides:
visit
in classcom.google.gwt.resources.css.ast.CssVisitor
- Parameters:
x
- the node being visitedctx
- the context for the visit
-