com.google.gwt.resources.rg
Class GwtCreateResourceGenerator

java.lang.Object
  extended by com.google.gwt.resources.ext.AbstractResourceGenerator
      extended by com.google.gwt.resources.rg.GwtCreateResourceGenerator
All Implemented Interfaces:
ResourceGenerator

public final class GwtCreateResourceGenerator
extends AbstractResourceGenerator

Provides implementations of GwtCreateResource.


Constructor Summary
GwtCreateResourceGenerator()
           
 
Method Summary
 java.lang.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.
 
Methods inherited from class com.google.gwt.resources.ext.AbstractResourceGenerator
createFields, finish, init, prepare
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtCreateResourceGenerator

public GwtCreateResourceGenerator()
Method Detail

createAssignment

public java.lang.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 interface ResourceGenerator
Specified by:
createAssignment in class AbstractResourceGenerator
Throws:
UnableToCompleteException