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 |
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 ModuleSpaceHost
public String[] getEntryPointTypeNames()
getEntryPointTypeNames
in interface ModuleSpaceHost
public TreeLogger getLogger()
getLogger
in interface ModuleSpaceHost
public void onModuleReady(ModuleSpace readySpace) throws UnableToCompleteException
onModuleReady
in interface ModuleSpaceHost
UnableToCompleteException
public String rebind(TreeLogger logger, String sourceTypeName) throws UnableToCompleteException
RebindOracle
rebind
in interface RebindOracle
null
if sourceTypeName is
not null
UnableToCompleteException
Copyright © 2018. All rights reserved.