|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.resources.ext.AbstractResourceGenerator
public abstract class AbstractResourceGenerator
A base class providing common methods for ResourceGenerator implementations.
ResourceGeneratorUtil
Field Summary | |
---|---|
protected static boolean |
STRIP_COMMENTS
|
Constructor Summary | |
---|---|
AbstractResourceGenerator()
|
Method Summary | |
---|---|
abstract 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. |
void |
createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
A no-op implementation. |
void |
finish(TreeLogger logger,
ResourceContext context)
A no-op implementation. |
void |
init(TreeLogger logger,
ResourceContext context)
A no-op implementation. |
void |
prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
A no-op implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean STRIP_COMMENTS
Constructor Detail |
---|
public AbstractResourceGenerator()
Method Detail |
---|
public abstract java.lang.String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException
ResourceGenerator
Example:
new MySampleResource() { public Foo getFoo() { ... } }
createAssignment
in interface ResourceGenerator
UnableToCompleteException
public void createFields(TreeLogger logger, ResourceContext context, ClientBundleFields fields) throws UnableToCompleteException
createFields
in interface ResourceGenerator
UnableToCompleteException
public void finish(TreeLogger logger, ResourceContext context) throws UnableToCompleteException
finish
in interface ResourceGenerator
UnableToCompleteException
public void init(TreeLogger logger, ResourceContext context) throws UnableToCompleteException
init
in interface ResourceGenerator
UnableToCompleteException
public void prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method) throws UnableToCompleteException
prepare
in interface ResourceGenerator
UnableToCompleteException
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |