Class Overview
Provides implementations of DataResource.
Summary
Public Methods |
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.
|
[Expand]
Inherited Methods |
From class
com.google.gwt.resources.ext.AbstractResourceGenerator
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gwt.resources.ext.ResourceGenerator
abstract
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.
|
abstract
void
|
createFields(TreeLogger logger, ResourceContext context, ClientBundleFields fields)
The ResourceGenerator can create fields within the implementation of the
bundle type.
|
abstract
void
|
finish(TreeLogger logger, ResourceContext context)
Called at the end of the resource generation phase and can be used to
perform cleanup.
|
abstract
void
|
init(TreeLogger logger, ResourceContext context)
Initialize the ResourceGenerator with the generation context that will
remain valid for the duration of the resource-generation phase.
|
abstract
void
|
prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method)
Called once for each method the ResourceGenerator is expected to handle.
|
|
Public Constructors
public
DataResourceGenerator
()
Public Methods
public
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.
Example:
new MySampleResource() { public Foo getFoo() { ... } }
Throws
UnableToCompleteException
| |