
public class ResourceOracleImpl extends AbstractResourceOracle
ResourceOracle.| Constructor and Description |
|---|
ResourceOracleImpl(List<ClassPathEntry> classPathEntries)
Constructs a
ResourceOracleImpl from a set of
ClassPathEntries. |
ResourceOracleImpl(TreeLogger logger)
Constructs a
ResourceOracleImpl from the thread's default
ClassLoader. |
ResourceOracleImpl(TreeLogger logger,
ClassLoader classLoader)
Constructs a
ResourceOracleImpl from a ClassLoader. |
ResourceOracleImpl(TreeLogger logger,
ResourceLoader resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Frees up all existing resources and transient internal state.
|
static void |
clearCache() |
static ClassPathEntry |
createEntryForUrl(TreeLogger logger,
URL url) |
Set<String> |
getPathNames()
Returns an unmodifiable set of unique abstract path names with constant
lookup time.
|
PathPrefixSet |
getPathPrefixes() |
Map<String,Resource> |
getResourceMap()
Deprecated.
|
Set<Resource> |
getResources()
Returns an unmodifiable set of unique resources with constant lookup time.
|
com.google.gwt.thirdparty.guava.common.collect.SetMultimap<String,String> |
getSourceModulesByTypeSourceName()
Returns a mapping from resource paths to the set of names of library
modules that created PathPrefixes (usually because of a
|
static void |
preload(TreeLogger logger)
Preinitializes the classpath from the thread default
ClassLoader. |
static void |
preload(TreeLogger logger,
ClassLoader classLoader)
Preinitializes the classpath for a given
ClassLoader. |
static void |
preload(TreeLogger logger,
ResourceLoader resources)
Preinitializes the classpath for a given
ResourceLoader. |
void |
printOverlappingModuleIncludeWarnings(TreeLogger logger)
Print overlapping include warnings that accumulated during resource
scanning.
|
void |
scanResources(TreeLogger logger)
Scans the associated paths to recompute the available resources.
|
void |
setPathPrefixes(PathPrefixSet pathPrefixSet) |
getResource, getResourceAsStreampublic ResourceOracleImpl(List<ClassPathEntry> classPathEntries)
ResourceOracleImpl from a set of
ClassPathEntries. The list is held by reference and
must not be modified.public ResourceOracleImpl(TreeLogger logger)
ResourceOracleImpl from the thread's default
ClassLoader.public ResourceOracleImpl(TreeLogger logger, ClassLoader classLoader)
ResourceOracleImpl from a ClassLoader. The
specified ClassLoader and all of its parents which are instances of
URLClassLoader will have their class path entries added to this
instances underlying class path.public ResourceOracleImpl(TreeLogger logger, ResourceLoader resources)
public static void clearCache()
public static ClassPathEntry createEntryForUrl(TreeLogger logger, URL url) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static void preload(TreeLogger logger)
ClassLoader.public static void preload(TreeLogger logger, ClassLoader classLoader)
ClassLoader.public static void preload(TreeLogger logger, ResourceLoader resources)
ResourceLoader.public com.google.gwt.thirdparty.guava.common.collect.SetMultimap<String,String> getSourceModulesByTypeSourceName()
For example com/google/gwt/user/client/DOM.java was made live by the com.google.gwt.user.User library module.
public void printOverlappingModuleIncludeWarnings(TreeLogger logger)
public void scanResources(TreeLogger logger)
logger - status and error details are written herepublic void clear()
ResourceOraclepublic Set<String> getPathNames()
ResourceOraclepublic PathPrefixSet getPathPrefixes()
@Deprecated public Map<String,Resource> getResourceMap()
ResourceOraclepublic Set<Resource> getResources()
ResourceOraclepublic void setPathPrefixes(PathPrefixSet pathPrefixSet)
Copyright © 2018. All rights reserved.