public final class

CssResourceGenerator

extends AbstractResourceGenerator
java.lang.Object
   ↳ com.google.gwt.resources.ext.AbstractResourceGenerator
     ↳ com.google.gwt.resources.rg.CssResourceGenerator

Class Overview

Provides implementations of CSSResources.

Summary

Public Constructors
CssResourceGenerator()
Public Methods
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 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(String[] args)
void prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method)
A no-op implementation.
[Expand]
Inherited Methods
From class com.google.gwt.resources.ext.AbstractResourceGenerator
From class java.lang.Object
From interface com.google.gwt.resources.ext.ResourceGenerator

Public Constructors

public CssResourceGenerator ()

Public Methods

public 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.

Example:

 new MySampleResource() { public Foo getFoo() { ... } }
 

Throws
UnableToCompleteException

public static String getImportPrefix (JClassType importType)

Returns the import prefix for a type, including the trailing hyphen.

public static boolean haveCommonProperties (CssRule a, CssRule b)

public void init (TreeLogger logger, ResourceContext context)

A no-op implementation.

Throws
UnableToCompleteException

public static void main (String[] args)

public void prepare (TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method)

A no-op implementation.

Throws
UnableToCompleteException