Example usage for com.google.gwt.resources.css.ast CssVisitor CssVisitor

List of usage examples for com.google.gwt.resources.css.ast CssVisitor CssVisitor

Introduction

In this page you can find the example usage for com.google.gwt.resources.css.ast CssVisitor CssVisitor.

Prototype

CssVisitor

Source Link

Usage

From source file:org.tessell.generators.css.AbstractCssGenerator.java

License:Apache License

private void extractDefs(CssStylesheet sheet) {
    new CssVisitor() {
        @Override/*from   www.  j av  a  2  s  . c  o  m*/
        public void endVisit(CssDef x, Context ctx) {
            if (x.getValues().size() > 0) {
                defs.put(x.getKey(), x.getValues().get(0));
            }
        }
    }.accept(sheet);
}