public class MhtmlClientBundleGenerator extends AbstractClientBundleGenerator
AbstractClientBundleGenerator.FieldsImpl
Constructor and Description |
---|
MhtmlClientBundleGenerator() |
Modifier and Type | Method and Description |
---|---|
protected AbstractResourceContext |
createResourceContext(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType)
Create the ResourceContext object that will be used by
ResourceGenerator subclasses. |
protected void |
doAddFieldsAndRequirements(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext generatorContext,
AbstractClientBundleGenerator.FieldsImpl fields,
ClientBundleRequirements requirements)
Provides a hook for subtypes to add additional fields or requirements to
the bundle.
|
protected void |
doCreateBundleForPermutation(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext generatorContext,
AbstractClientBundleGenerator.FieldsImpl fields,
String generatedSimpleSourceName)
This method is called after the ClientBundleRequirements have been
evaluated and a new ClientBundle implementation is being created.
|
protected void |
doFinish(com.google.gwt.core.ext.TreeLogger logger)
Provides a hook for finalizing generated resources.
|
generateIncrementally, getVersionId
protected AbstractResourceContext createResourceContext(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType)
AbstractClientBundleGenerator
ResourceGenerator
subclasses. This is the primary way to implement
custom logic in the resource generation pass.createResourceContext
in class AbstractClientBundleGenerator
protected void doAddFieldsAndRequirements(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext generatorContext, AbstractClientBundleGenerator.FieldsImpl fields, ClientBundleRequirements requirements) throws com.google.gwt.core.ext.UnableToCompleteException
AbstractClientBundleGenerator
doAddFieldsAndRequirements
in class AbstractClientBundleGenerator
logger
- a TreeLoggergeneratorContext
- the GeneratorContextfields
- ClentBundle fieldsrequirements
- ClientBundleRequirementscom.google.gwt.core.ext.UnableToCompleteException
- if an error occurs.protected void doCreateBundleForPermutation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext generatorContext, AbstractClientBundleGenerator.FieldsImpl fields, String generatedSimpleSourceName) throws com.google.gwt.core.ext.UnableToCompleteException
AbstractClientBundleGenerator
doCreateBundleForPermutation
in class AbstractClientBundleGenerator
logger
- a TreeLoggergeneratorContext
- the GeneratoContextfields
- ClientBundle fieldsgeneratedSimpleSourceName
- a Stringcom.google.gwt.core.ext.UnableToCompleteException
- if an error occurs.protected void doFinish(com.google.gwt.core.ext.TreeLogger logger) throws com.google.gwt.core.ext.UnableToCompleteException
AbstractClientBundleGenerator
doFinish
in class AbstractClientBundleGenerator
logger
- a TreeLoggercom.google.gwt.core.ext.UnableToCompleteException
- if an error occurs.Copyright © 2016. All rights reserved.