com.google.gwt.resources.rg
Class BundleResourceGenerator

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

public final class BundleResourceGenerator
extends AbstractResourceGenerator

This is a special case of ResourceGenerator that handles nested bundles.


Constructor Summary
BundleResourceGenerator()
           
 
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

BundleResourceGenerator

public BundleResourceGenerator()
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