|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.libideas.resources.rebind.ResourceGeneratorUtil
public final class ResourceGeneratorUtil
Utility methods for building ResourceGenerators.
Field Summary | |
---|---|
static java.lang.String |
METADATA_TAG
|
static java.lang.String |
TRANSFORMER_TAG
|
Method Summary | ||
---|---|---|
static
|
applyTransformations(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JMethod method,
java.lang.Class<T> baseType,
T input)
Apply Transformers to a resource. |
|
static java.lang.String |
baseName(java.net.URL resource)
Return the base filename of a resource. |
|
static java.net.URL[] |
findResources(com.google.gwt.core.ext.TreeLogger logger,
ResourceContext context,
com.google.gwt.core.ext.typeinfo.JMethod method)
Find all resources referenced by a method on the bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String METADATA_TAG
public static final java.lang.String TRANSFORMER_TAG
Method Detail |
---|
public static <T> T applyTransformations(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.JMethod method, java.lang.Class<T> baseType, T input) throws com.google.gwt.core.ext.UnableToCompleteException
gwt.transformer
annotations will specify the
Transformer
class to use. Multiple transformations will be applied
in their declared order.
T
- the Java type that encapsulates the value of the resourcelogger
- the TreeLogger contextmethod
- the method to examinebaseType
- a class literal which specifies the base typeinput
- the value to transform
com.google.gwt.core.ext.UnableToCompleteException
public static java.lang.String baseName(java.net.URL resource)
basename
.
resource
- the URL of the resource
public static java.net.URL[] findResources(com.google.gwt.core.ext.TreeLogger logger, ResourceContext context, com.google.gwt.core.ext.typeinfo.JMethod method) throws com.google.gwt.core.ext.UnableToCompleteException
context
- method
-
com.google.gwt.core.ext.UnableToCompleteException
- if the method has no resource annotations
or ore or more of the resources could not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |