com.google.gwt.resources.rg
Class CssResourceGenerator

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

public final class CssResourceGenerator
extends AbstractResourceGenerator

Provides implementations of CSSResources.


Constructor Summary
CssResourceGenerator()
           
 
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.
static java.lang.String getImportPrefix(JClassType importType)
          Returns the import prefix for a type, including the trailing hyphen.
static boolean haveCommonProperties(CssRule a, CssRule b)
           
 void init(TreeLogger logger, ResourceContext context)
          A no-op implementation.
static void main(java.lang.String[] args)
           
 void prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method)
          A no-op implementation.
 
Methods inherited from class com.google.gwt.resources.ext.AbstractResourceGenerator
createFields, finish
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssResourceGenerator

public CssResourceGenerator()
Method Detail

getImportPrefix

public static java.lang.String getImportPrefix(JClassType importType)
Returns the import prefix for a type, including the trailing hyphen.


haveCommonProperties

public static boolean haveCommonProperties(CssRule a,
                                           CssRule b)

main

public static void main(java.lang.String[] args)

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

init

public void init(TreeLogger logger,
                 ResourceContext context)
          throws UnableToCompleteException
Description copied from class: AbstractResourceGenerator
A no-op implementation.

Specified by:
init in interface ResourceGenerator
Overrides:
init in class AbstractResourceGenerator
Throws:
UnableToCompleteException

prepare

public void prepare(TreeLogger logger,
                    ResourceContext context,
                    ClientBundleRequirements requirements,
                    JMethod method)
             throws UnableToCompleteException
Description copied from class: AbstractResourceGenerator
A no-op implementation.

Specified by:
prepare in interface ResourceGenerator
Overrides:
prepare in class AbstractResourceGenerator
Throws:
UnableToCompleteException