Package | Description |
---|---|
com.google.gwt.resources.css |
Support package for manipulating CSS resources.
|
com.google.gwt.resources.ext |
This package contains extension hooks for adding new resource types to
ClientBundle.
|
com.google.gwt.resources.rg |
Constructor and Description |
---|
Spriter(TreeLogger logger,
ResourceContext context) |
SubstitutionReplacer(TreeLogger logger,
ResourceContext context,
Map<String,CssDef> substitutions) |
Modifier and Type | Method and Description |
---|---|
String |
ResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method)
Produce the right-hand-side of a Java assignment expression to provide the
singleton instance object for a particular resource.
|
abstract String |
AbstractResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
ResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
The ResourceGenerator can create fields within the implementation of the
bundle type.
|
void |
AbstractResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
A no-op implementation.
|
static URL[] |
ResourceGeneratorUtil.findResources(TreeLogger logger,
ClassLoader classLoader,
ResourceContext context,
JMethod method,
String[] defaultSuffixes)
Find all resources referenced by a method in a bundle.
|
static URL[] |
ResourceGeneratorUtil.findResources(TreeLogger logger,
ResourceContext context,
JMethod method)
Find all resources referenced by a method in a bundle.
|
static URL[] |
ResourceGeneratorUtil.findResources(TreeLogger logger,
ResourceContext context,
JMethod method,
String[] defaultSuffixes)
Find all resources referenced by a method in a bundle.
|
void |
ResourceGenerator.finish(TreeLogger logger,
ResourceContext context)
Called at the end of the resource generation phase and can be used to
perform cleanup.
|
void |
AbstractResourceGenerator.finish(TreeLogger logger,
ResourceContext context)
A no-op implementation.
|
void |
ResourceGenerator.init(TreeLogger logger,
ResourceContext context)
Initialize the ResourceGenerator with the generation context that will
remain valid for the duration of the resource-generation phase.
|
void |
AbstractResourceGenerator.init(TreeLogger logger,
ResourceContext context)
A no-op implementation.
|
void |
ResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
Called once for each method the ResourceGenerator is expected to handle.
|
void |
AbstractResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
A no-op implementation.
|
static URL |
ResourceGeneratorUtil.tryFindResource(TreeLogger logger,
GeneratorContext genContext,
ResourceContext resourceContext,
String resourceName)
Try to find a resource with the given resourceName.
|
Modifier and Type | Method and Description |
---|---|
String |
DataResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
BundleResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
TextResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
ImageResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
ExternalTextResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
GwtCreateResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
CssResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
ImageResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
We use this as a signal that we have received all image methods and can now
create the bundled images.
|
void |
ExternalTextResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields) |
protected abstract String |
AbstractCssResourceGenerator.getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method)
Returns the java expression that contains the compiled CSS.
|
protected String |
CssResourceGenerator.getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method) |
protected String |
CssResourceGenerator.getResourceImplAsString(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements,
JClassType cssResourceSubtype,
CssStylesheet stylesheet) |
protected URL[] |
CssResourceGenerator.getResources(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
ImageResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
void |
ExternalTextResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
void |
CssResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
protected void |
CssResourceGenerator.outputAdditionalArtifacts(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements,
JClassType cssResourceSubtype,
CssStylesheet stylesheet)
Output additional artifacts.
|
protected void |
CssResourceGenerator.outputCssMapArtifact(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements)
Builds a CSV file mapping obfuscated CSS class names to their qualified source name and
outputs it as a private build artifact.
|
void |
ImageResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
Process each image method.
|
void |
ExternalTextResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method) |
void |
CssResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method) |
protected void |
AbstractCssResourceGenerator.writeGetText(TreeLogger logger,
ResourceContext context,
JMethod method,
com.google.gwt.user.rebind.SourceWriter sw) |
Copyright © 2018. All rights reserved.