Constructor and Description |
---|
StandardPublicResource(String partialPath,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
ModuleDef.findPublicFile(String partialPath) |
Resource |
ModuleDef.findSourceFile(String partialPath)
Returns the Resource for a source file if it is found;
null
otherwise. |
Resource |
ZipLibrary.getBuildResourceByPath(String path) |
Resource |
LibraryGroup.getBuildResourceByPath(String buildResourcePath)
Returns the resource referenced by name if present or null;
|
Resource |
Library.getBuildResourceByPath(String buildResourcePath)
Returns a resource handle or null for the provided path.
|
Resource |
ZipLibrary.getPublicResourceByPath(String path) |
Resource |
LibraryGroup.getPublicResourceByPath(String path)
Returns the resource referenced by name if present or null.
|
Resource |
Library.getPublicResourceByPath(String path)
Returns a resource handle or null for the provided path.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Resource> |
LibraryGroupBuildResourceOracle.getResourceMap()
Deprecated.
|
Map<String,Resource> |
CombinedResourceOracle.getResourceMap()
Deprecated.
|
Map<String,Resource> |
LibraryGroupPublicResourceOracle.getResourceMap()
Deprecated.
|
Set<Resource> |
LibraryGroupBuildResourceOracle.getResources() |
Set<Resource> |
CombinedResourceOracle.getResources() |
Set<Resource> |
LibraryGroupPublicResourceOracle.getResources() |
Set<Resource> |
ModuleDef.getResourcesNewerThan(long modificationTime) |
Modifier and Type | Method and Description |
---|---|
void |
ZipLibraryWriter.addBuildResource(Resource buildResource) |
void |
LibraryWriter.addBuildResource(Resource buildResource)
Adds a build resource.
|
void |
NullLibraryWriter.addBuildResource(Resource buildResource) |
void |
ZipLibraryWriter.addPublicResource(Resource publicResource) |
void |
LibraryWriter.addPublicResource(Resource publicResource)
Adds a public resource (such as a html, css, or png file).
|
void |
NullLibraryWriter.addPublicResource(Resource publicResource) |
Modifier and Type | Method and Description |
---|---|
void |
JavaSourceParser.addSourceForType(JClassType topType,
Resource source)
Add a source file associated with the outermost enclosing class.
|
static CompilationUnitBuilder |
CompilationUnitBuilder.create(Resource resource) |
static String |
CompilationUnitBuilder.getSourceMapPathFor(Resource resource)
Given a resource, returns the filename that will appear in the source map.
|
static String |
Shared.getTypeName(Resource sourceFile)
Returns the source name of the Java type defined within the given source Resource.
|
static String |
Shared.readSource(Resource sourceFile) |
Modifier and Type | Method and Description |
---|---|
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources)
Compiles the given source files and adds them to the CompilationState.
|
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate delegate)
Compiles the given source files and adds them to the CompilationState.
|
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources) |
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate compilerDelegate)
Build a new compilation state from a source oracle.
|
Modifier and Type | Class and Description |
---|---|
class |
MockJavaResource
Convenience base class for mock resources representing a java type.
|
class |
MockResource
An in-memory
Resource . |
class |
StaticJavaResource
Java resource with unchanging contents.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Resource> |
MockResourceOracle.getResourceMap()
Deprecated.
|
Set<Resource> |
MockResourceOracle.getResources() |
Modifier and Type | Method and Description |
---|---|
void |
MockResourceOracle.add(Resource... resources) |
void |
MockResourceOracle.addOrReplace(Resource... resources) |
void |
MockResourceOracle.replace(Resource... resources) |
Constructor and Description |
---|
MockResourceOracle(Resource... resources) |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceOracle.getResource(String pathName)
Returns the resource for the given path name or null if there is no such resource.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Resource> |
ResourceOracle.getResourceMap()
Deprecated.
use
ResourceOracle.getResource(String pathName) , ResourceOracle.getResources() , and
ResourceOracle.getPathNames() instead so that access to specific resources can be
tracked. |
Set<Resource> |
ResourceOracle.getResources()
Returns an unmodifiable set of unique resources with constant lookup time.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource
Provides common behavior for Resource implementations.
|
class |
FileResource
Represents a resource contained in directory on a file system.
|
class |
UrlResource
Exposes a URL as a resource.
Useful when copying data that was not loaded via the normal resource system (for example .gwt.xml files) into systems that expect a resource object (for example a library builder). |
class |
ZipFileResource
Represents a resource contained in a jar or zip file.
|
Modifier and Type | Method and Description |
---|---|
Resource |
AbstractResourceOracle.getResource(String pathName) |
Modifier and Type | Method and Description |
---|---|
Map<String,Resource> |
ResourceOracleImpl.getResourceMap()
Deprecated.
|
Set<Resource> |
ResourceOracleImpl.getResources() |
Copyright © 2018. All rights reserved.