Class Generator

java.lang.Object
com.google.gwt.core.ext.Generator
Direct Known Subclasses:
IncrementalGenerator

public abstract class Generator extends Object
Generates source code for subclasses during deferred binding requests. Subclasses must be thread-safe.

If annotated by @RunsLocal, a generator can minimize its impact on compilation speed. See Generator.RunsLocal for details.

Resource reading should be done through the ResourceOracle in the provided GeneratorContext (not via ClassLoader.getResource(), File, or URL) so that Generator Resource dependencies can be detected and used to facilitate fast incremental recompiles.