Errai 3.0.1-SNAPSHOT

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

java.lang.Object
  extended by com.google.gwt.core.ext.Generator
      extended by org.jboss.errai.config.rebind.AbstractAsyncGenerator
          extended by 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

Constructor Summary
LessStyleGenerator()
           
 
Method Summary
protected  String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context)
          Called by AbstractAsyncGenerator.generateAsync(TreeLogger, GeneratorContext) to carry out the actual code generation.
 String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName)
           
 
Methods inherited from class org.jboss.errai.config.rebind.AbstractAsyncGenerator
generateAsync, startAsyncGeneratorsAndWaitFor
 
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
 

Constructor Detail

LessStyleGenerator

public LessStyleGenerator()
Method Detail

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.

Errai 3.0.1-SNAPSHOT

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