com.google.gwt.libideas.resources.rebind.context
Class StaticResourceBundleGenerator
java.lang.Object
com.google.gwt.core.ext.Generator
com.google.gwt.libideas.resources.rebind.AbstractResourceBundleGenerator
com.google.gwt.libideas.resources.rebind.context.StaticResourceBundleGenerator
public final class StaticResourceBundleGenerator
- extends AbstractResourceBundleGenerator
Copies selected files into module output with strong names and generates the
ResourceBundle mappings.
Method Summary |
protected ResourceContext |
createResourceContext(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType,
com.google.gwt.user.rebind.SourceWriter sw)
Create the ResourceContext object that will be used by
ResourceGenerator subclasses. |
protected java.lang.String |
generateSimpleSourceName(java.lang.String sourceType)
Given a user-defined type name, determine the type name for the generated
class. |
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 |
StaticResourceBundleGenerator
public StaticResourceBundleGenerator()
createResourceContext
protected ResourceContext createResourceContext(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType,
com.google.gwt.user.rebind.SourceWriter sw)
- Description copied from class:
AbstractResourceBundleGenerator
- Create the ResourceContext object that will be used by
ResourceGenerator
subclasses. This is the primary way to implement
custom logic in the resource generation pass.
- Specified by:
createResourceContext
in class AbstractResourceBundleGenerator
- Returns:
- the ResourceContext to be used
generateSimpleSourceName
protected java.lang.String generateSimpleSourceName(java.lang.String sourceType)
- Given a user-defined type name, determine the type name for the generated
class.
- Specified by:
generateSimpleSourceName
in class AbstractResourceBundleGenerator