org.jboss.errai.ui.rebind.less
Class LessStyleGenerator
java.lang.Object
com.google.gwt.core.ext.Generator
org.jboss.errai.config.rebind.AbstractAsyncGenerator
org.jboss.errai.ui.rebind.less.LessStyleGenerator
- All Implemented Interfaces:
- AsyncCodeGenerator
public class LessStyleGenerator
- extends AbstractAsyncGenerator
This generator will create the LessStyleMapping that contains the mapping between the original selector name and
the obfuscated one. It will also make sure that the generated css file gets injected with a call
to StyleInjector
.
- Author:
- edewit@redhat.com
Methods inherited from class com.google.gwt.core.ext.Generator |
escape |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LessStyleGenerator
public LessStyleGenerator()
generate
public String generate(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
String typeName)
throws com.google.gwt.core.ext.UnableToCompleteException
- Specified by:
generate
in class com.google.gwt.core.ext.Generator
- Throws:
com.google.gwt.core.ext.UnableToCompleteException
generate
protected String generate(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context)
- Description copied from class:
AbstractAsyncGenerator
- Called by
AbstractAsyncGenerator.generateAsync(TreeLogger, GeneratorContext)
to carry out the actual code
generation.
- Specified by:
generate
in class AbstractAsyncGenerator
context
- the generator context to use.
- Returns:
- the generated code.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.