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. |
Modifier and Type | Method and Description |
---|---|
Set<Resource> |
ModuleDef.getResourcesNewerThan(long modificationTime) |
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 |
---|---|
Resource |
MockResourceOracle.getResource(String pathName) |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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 a directory on a file system.
|
class |
ZipFileResource
Represents a resource contained in a jar or zip file.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceOracleImpl.getResource(String pathName) |
Modifier and Type | Method and Description |
---|---|
Set<Resource> |
ResourceOracleImpl.getResources() |
Copyright © 2018. All rights reserved.