| com.google.gwt.core.ext.GeneratorContext
All known Subclasses: com.google.gwt.dev.shell.StandardGeneratorContext,
GeneratorContext | public interface GeneratorContext (Code) | | Provides metadata to deferred binding generators.
|
getPropertyOracle | PropertyOracle getPropertyOracle()(Code) | | Gets the property oracle for the current generator context. Generators can
use the property oracle to query deferred binding properties.
|
getTypeOracle | TypeOracle getTypeOracle()(Code) | | Gets the type oracle for the current generator context. Generators can use
the type oracle to ask questions about the entire translatable code base.
a TypeOracle over all the relevant translatable compilation unitsin the source path |
tryCreate | PrintWriter tryCreate(TreeLogger logger, String packageName, String simpleName)(Code) | | Attempts to get a PrintWriter so that the caller can
generate the source code for the named type. If the named types already
exists, null is returned to indicate that no work needs to
be done. The file is not committed until
GeneratorContext.commit(TreeLogger,PrintWriter) is called.
Parameters: logger - a logger; normally the logger passed intoGenerator.generate(TreeLoggerGeneratorContextString)or a branch thereof Parameters: packageName - the name of the package to which the create type belongs Parameters: simpleName - the unqualified source name of the type being generated null if the package and class already exists,otherwise a PrintWriter is returned. |
|
|