com.google.gwt.libideas.resources.rebind
Class AbstractResourceContext

java.lang.Object
  extended by com.google.gwt.libideas.resources.rebind.AbstractResourceContext
All Implemented Interfaces:
ResourceContext

public abstract class AbstractResourceContext
extends java.lang.Object
implements ResourceContext

Defines base methods for ResourceContext implementations.


Constructor Summary
protected AbstractResourceContext(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType, com.google.gwt.user.rebind.SourceWriter sw)
           
 
Method Summary
 com.google.gwt.core.ext.GeneratorContext getGeneratorContext()
          Return the GeneratorContext in which the overall resource generation framework is being run.
 com.google.gwt.core.ext.TreeLogger getLogger()
           
 com.google.gwt.core.ext.typeinfo.JClassType getResourceBundleType()
          Return the type of the resource bundle being generated.
 com.google.gwt.user.rebind.SourceWriter getSourceWriter()
          Return a SourceWriter which can be used to add to the concrete implementation of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.libideas.resources.rebind.ResourceContext
addToOutput, addToOutput
 

Constructor Detail

AbstractResourceContext

protected AbstractResourceContext(com.google.gwt.core.ext.TreeLogger logger,
                                  com.google.gwt.core.ext.GeneratorContext context,
                                  com.google.gwt.core.ext.typeinfo.JClassType resourceBundleType,
                                  com.google.gwt.user.rebind.SourceWriter sw)
Method Detail

getGeneratorContext

public com.google.gwt.core.ext.GeneratorContext getGeneratorContext()
Description copied from interface: ResourceContext
Return the GeneratorContext in which the overall resource generation framework is being run.

Specified by:
getGeneratorContext in interface ResourceContext

getLogger

public com.google.gwt.core.ext.TreeLogger getLogger()

getResourceBundleType

public com.google.gwt.core.ext.typeinfo.JClassType getResourceBundleType()
Description copied from interface: ResourceContext
Return the type of the resource bundle being generated.

Specified by:
getResourceBundleType in interface ResourceContext

getSourceWriter

public com.google.gwt.user.rebind.SourceWriter getSourceWriter()
Description copied from interface: ResourceContext
Return a SourceWriter which can be used to add to the concrete implementation of the type.

Specified by:
getSourceWriter in interface ResourceContext
Returns: