public interface Module
Each module should provide an instance() method that returns a singleton instance of the module.
| Modifier and Type | Method and Description |
|---|---|
ModuleInfo |
info()
This method retrieves the object that describes this module.
|
void |
invoke(int index,
ArgumentStack arguments)
This method invokes a function within this module.
|
ModuleInfo info()
This is a constant-time operation.
void invoke(int index,
ArgumentStack arguments)
throws java.lang.Throwable
This is a low-level function needed to implement delegates.
The key is the index of the function in the list returned by moduleFunctions().
This method does nothing, iff the index does not refer to a real function.
index - identifies the function to invoke.arguments - contains the arguments to pass to the function.java.lang.Throwable - Any unhandled exception thrown by the function will be rethrown.