public class GssResourceGenerator extends AbstractCssResourceGenerator implements SupportsGeneratorResultCaching
Modifier and Type | Class and Description |
---|---|
static class |
GssResourceGenerator.AutoConversionMode
Different conversion modes from css to gss.
|
static class |
GssResourceGenerator.GssOptions
GssOptions contains the values of all configuration properties that can be used with
GssResource.
|
static class |
GssResourceGenerator.LoggerErrorManager
ErrorManager used to log the errors and warning messages produced by the different
CssCompilerPass . |
STRIP_COMMENTS
Constructor and Description |
---|
GssResourceGenerator(GssResourceGenerator.GssOptions gssOptions) |
Modifier and Type | Method and Description |
---|---|
static String |
concatCssFiles(List<URL> resources,
TreeLogger logger) |
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.
|
protected String |
getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method)
Returns the java expression that contains the compiled CSS.
|
static GssResourceGenerator.GssOptions |
getGssOptions(PropertyOracle propertyOracle,
TreeLogger logger) |
static String |
getImportPrefix(JClassType importType)
Returns the import prefix for a type, including the trailing hyphen.
|
void |
init(TreeLogger logger,
ResourceContext context)
A no-op implementation.
|
void |
prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
A no-op implementation.
|
static com.google.gwt.thirdparty.common.css.SourceCode |
readUrlContent(URL fileUrl,
TreeLogger logger) |
isReturnTypeString, writeEnsureInjected, writeGetName, writeGetText, writeSimpleGetter
createFields, finish
public GssResourceGenerator(GssResourceGenerator.GssOptions gssOptions)
public static com.google.gwt.thirdparty.common.css.SourceCode readUrlContent(URL fileUrl, TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException
public static GssResourceGenerator.GssOptions getGssOptions(PropertyOracle propertyOracle, TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException
public static String getImportPrefix(JClassType importType)
public String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException
ResourceGenerator
Example:
new MySampleResource() { public Foo getFoo() { ... } }
createAssignment
in interface ResourceGenerator
createAssignment
in class AbstractResourceGenerator
UnableToCompleteException
public void init(TreeLogger logger, ResourceContext context) throws UnableToCompleteException
AbstractResourceGenerator
init
in interface ResourceGenerator
init
in class AbstractResourceGenerator
UnableToCompleteException
public void prepare(TreeLogger logger, ResourceContext context, ClientBundleRequirements requirements, JMethod method) throws UnableToCompleteException
AbstractResourceGenerator
prepare
in interface ResourceGenerator
prepare
in class AbstractResourceGenerator
UnableToCompleteException
protected String getCssExpression(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException
AbstractCssResourceGenerator
getCssExpression
in class AbstractCssResourceGenerator
UnableToCompleteException
public static String concatCssFiles(List<URL> resources, TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.