
public class ShellModuleSpaceHost extends Object implements ModuleSpaceHost
ModuleSpace
that works appropriately for the development shell.| Modifier and Type | Field and Description |
|---|---|
protected CompilationState |
compilationState |
protected File |
genDir |
| Constructor and Description |
|---|
ShellModuleSpaceHost(TreeLogger logger,
CompilationState compilationState,
ModuleDef module,
File genDir,
ArtifactAcceptor artifactAcceptor,
RebindCache rebindCache) |
| Modifier and Type | Method and Description |
|---|---|
CompilingClassLoader |
getClassLoader() |
String[] |
getEntryPointTypeNames() |
TreeLogger |
getLogger() |
void |
invalidateRebind(String sourceTypeName)
Invalidates the given source type name, so the next rebind request will
generate a type again.
|
void |
onModuleReady(ModuleSpace readySpace) |
String |
rebind(TreeLogger logger,
String sourceTypeName)
Determines which type should be substituted for the requested type.
|
protected final CompilationState compilationState
protected final File genDir
public ShellModuleSpaceHost(TreeLogger logger, CompilationState compilationState, ModuleDef module, File genDir, ArtifactAcceptor artifactAcceptor, RebindCache rebindCache)
module - the module associated with the hosted module spacepublic CompilingClassLoader getClassLoader()
getClassLoader in interface ModuleSpaceHostpublic String[] getEntryPointTypeNames()
getEntryPointTypeNames in interface ModuleSpaceHostpublic TreeLogger getLogger()
getLogger in interface ModuleSpaceHostpublic void invalidateRebind(String sourceTypeName)
public void onModuleReady(ModuleSpace readySpace) throws UnableToCompleteException
onModuleReady in interface ModuleSpaceHostUnableToCompleteExceptionpublic String rebind(TreeLogger logger, String sourceTypeName) throws UnableToCompleteException
RebindOraclerebind in interface RebindOraclenull if sourceTypeName is
not nullUnableToCompleteExceptionCopyright © 2018. All rights reserved.