public class ModuleDefLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPILATION_UNIT_ARCHIVE_SUFFIX
Filename suffix used for Precompiled GWT Module files.
|
static String |
GWT_MODULE_XML_SUFFIX
Filename suffix used for GWT Module XML files.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearModuleCache() |
static ModuleDef |
createSyntheticModule(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
String[] inherits,
boolean refresh)
Creates a module in memory that is not associated with a
.gwt.xml file on disk. |
boolean |
enforceStrictResources() |
protected void |
load(TreeLogger logger,
String nameOfModuleToLoad,
ModuleDef dest)
Loads a module and all its included modules, recursively, into the given ModuleDef.
|
static ModuleDef |
loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName)
Loads a new (assumed monolithic) module from the class path and defers scanning associated
directories for resources.
|
static ModuleDef |
loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
boolean refresh,
boolean monolithic)
Loads a new module from the class path and may or may not immediately scan associated
directories for resources or consider it monolithic, depending on parameters.
|
static ModuleDef |
loadFromClassPath(TreeLogger logger,
String moduleName,
boolean refresh)
Deprecated.
|
static ModuleDef |
loadFromResources(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
ResourceLoader resources,
boolean refresh,
boolean monolithic)
Loads a new module from the given ResourceLoader and may or may not immediately scan associated
directories for resources or consider it monolithic, depending on parameters.
|
public static final String COMPILATION_UNIT_ARCHIVE_SUFFIX
public static final String GWT_MODULE_XML_SUFFIX
public static void clearModuleCache()
public static ModuleDef createSyntheticModule(TreeLogger logger, CompilerContext compilerContext, String moduleName, String[] inherits, boolean refresh) throws UnableToCompleteException
.gwt.xml
file on disk.logger
- logs the processcompilerContext
- shared read only compiler statemoduleName
- the synthetic module to createinherits
- a set of modules to inherit fromrefresh
- whether to refresh the moduleUnableToCompleteException
public static ModuleDef loadFromClassPath(TreeLogger logger, CompilerContext compilerContext, String moduleName) throws UnableToCompleteException
UnableToCompleteException
@Deprecated public static ModuleDef loadFromClassPath(TreeLogger logger, String moduleName, boolean refresh) throws UnableToCompleteException
UnableToCompleteException
public static ModuleDef loadFromClassPath(TreeLogger logger, CompilerContext compilerContext, String moduleName, boolean refresh, boolean monolithic) throws UnableToCompleteException
UnableToCompleteException
public static ModuleDef loadFromResources(TreeLogger logger, CompilerContext compilerContext, String moduleName, ResourceLoader resources, boolean refresh, boolean monolithic) throws UnableToCompleteException
UnableToCompleteException
public boolean enforceStrictResources()
protected void load(TreeLogger logger, String nameOfModuleToLoad, ModuleDef dest) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2018. All rights reserved.