com.google.gwt.resources.rg
Class TextResourceGenerator

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

public final class TextResourceGenerator
extends AbstractResourceGenerator

Provides implementations of TextResource.


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

TextResourceGenerator

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