Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.rebind.less
Class StylesheetOptimizer

java.lang.Object
  extended by org.jboss.errai.ui.rebind.less.StylesheetOptimizer

public class StylesheetOptimizer
extends Object

Parses the css stylesheet and performs optimizations on it remove identical selectors and merge identical rules.

Author:
edewit@redhat.com

Constructor Summary
StylesheetOptimizer(File stylesheet)
           
 
Method Summary
 Map<String,String> getConvertedSelectors()
           
protected  com.google.gwt.resources.css.ast.CssStylesheet getStylesheet()
           
 String output()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylesheetOptimizer

public StylesheetOptimizer(File stylesheet)
                    throws com.google.gwt.core.ext.UnableToCompleteException
Throws:
com.google.gwt.core.ext.UnableToCompleteException
Method Detail

getStylesheet

protected com.google.gwt.resources.css.ast.CssStylesheet getStylesheet()

getConvertedSelectors

public Map<String,String> getConvertedSelectors()

output

public String output()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.