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 |
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 |
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() |
Map<String,Resource> |
CombinedResourceOracle.getResourceMap() |
Map<String,Resource> |
LibraryGroupPublicResourceOracle.getResourceMap() |
Set<Resource> |
LibraryGroupBuildResourceOracle.getResources() |
Set<Resource> |
CombinedResourceOracle.getResources() |
Set<Resource> |
LibraryGroupPublicResourceOracle.getResources() |
Modifier and Type | Method and Description |
---|---|
void |
NullLibraryBuilder.addBuildResource(Resource buildResource) |
void |
LibraryBuilder.addBuildResource(Resource buildResource)
Adds a build resource.
|
void |
ZipLibraryBuilder.addBuildResource(Resource buildResource) |
void |
NullLibraryBuilder.addPublicResource(Resource publicResource) |
void |
LibraryBuilder.addPublicResource(Resource publicResource)
Adds a public resource (such as a html, css, or png file).
|
void |
ZipLibraryBuilder.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) |
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() |
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 |
---|---|
Map<String,Resource> |
ResourceOracle.getResourceMap()
Returns an unmodifiable map of abstract path name to resource.
|
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 |
---|---|
Map<String,Resource> |
ResourceOracleImpl.getResourceMap() |
Set<Resource> |
ResourceOracleImpl.getResources() |
Copyright © 2018. All rights reserved.