Example usage for com.google.gwt.resources.css.ast CssDef getKey

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

Introduction

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

Prototype

public String getKey() 

Source Link

Usage

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

License:Apache License

private void extractDefs(CssStylesheet sheet) {
    new CssVisitor() {
        @Override// w  w  w  . j  a  v a2 s.  c om
        public void endVisit(CssDef x, Context ctx) {
            if (x.getValues().size() > 0) {
                defs.put(x.getKey(), x.getValues().get(0));
            }
        }
    }.accept(sheet);
}