Package com.google.gwt.resources.ext
Class AbstractResourceGenerator
java.lang.Object
com.google.gwt.resources.ext.AbstractResourceGenerator
- All Implemented Interfaces:
ResourceGenerator
A base class providing common methods for ResourceGenerator implementations.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
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.void
createFields
(TreeLogger logger, ResourceContext context, ClientBundleFields fields) A no-op implementation.void
finish
(TreeLogger logger, ResourceContext context) A no-op implementation.void
init
(TreeLogger logger, ResourceContext context) A no-op implementation.void
prepare
(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method) A no-op implementation.
-
Field Details
-
STRIP_COMMENTS
protected static final boolean STRIP_COMMENTS
-
-
Constructor Details
-
AbstractResourceGenerator
public AbstractResourceGenerator()
-
-
Method Details
-
createAssignment
public abstract String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException Description copied from interface:ResourceGenerator
Produce the right-hand-side of a Java assignment expression to provide the singleton instance object for a particular resource.Example:
new MySampleResource() { public Foo getFoo() { ... } }
- Specified by:
createAssignment
in interfaceResourceGenerator
- Throws:
UnableToCompleteException
-
createFields
public void createFields(TreeLogger logger, ResourceContext context, ClientBundleFields fields) throws UnableToCompleteException A no-op implementation.- Specified by:
createFields
in interfaceResourceGenerator
- Throws:
UnableToCompleteException
-
finish
A no-op implementation.- Specified by:
finish
in interfaceResourceGenerator
- Throws:
UnableToCompleteException
-
init
A no-op implementation.- Specified by:
init
in interfaceResourceGenerator
- Throws:
UnableToCompleteException
-
prepare
public void prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method) throws UnableToCompleteException A no-op implementation.- Specified by:
prepare
in interfaceResourceGenerator
- Throws:
UnableToCompleteException
-