public interface IEnvironment
| Modifier and Type | Method and Description |
|---|---|
void |
addModuleListener(IModuleListener listener) |
Object |
getModule(String name) |
<T,U extends Class<T>> |
getModule(U clazz) |
List<Object> |
getModules()
Retrieve a list of loaded modules.
|
IScriptEngine |
getScriptEngine() |
Object |
loadModule(String moduleIdentifier)
Load a module.
|
void |
print(Object text,
boolean lineFeed)
Print to standard output.
|
void |
removeModuleListener(IModuleListener listener) |
void |
wrap(Object toBeWrapped)
Wrap a java instance.
|
IScriptEngine getScriptEngine()
<T,U extends Class<T>> T getModule(U clazz)
List<Object> getModules()
void print(Object text, boolean lineFeed)
text - message to writelineFeed - true to add a line feed after the textvoid addModuleListener(IModuleListener listener)
void removeModuleListener(IModuleListener listener)
Object loadModule(String moduleIdentifier)
name - name of module to loadvoid wrap(Object toBeWrapped)
WrapToScript only these will be wrapped. If no annotation can be found, all public methods/constants will
be wrapped. As some target languages might not support method overloading this might result in some methods not wrapped correctly.toBeWrapped - instance to be wrapped