public abstract class SimpleLoaderFunction extends AbstractLibFunction
| Constructor and Description |
|---|
SimpleLoaderFunction(org.classdump.luna.Table env) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
install(org.classdump.luna.StateContext context,
org.classdump.luna.Table env,
org.classdump.luna.ByteString modName,
org.classdump.luna.ByteString origin) |
protected void |
invoke(org.classdump.luna.runtime.ExecutionContext context,
ArgumentIterator args)
Invokes the function in the context
context with arguments passed in
the iterator args. |
protected String |
name()
Returns the name of the function for error-reporting.
|
invoke, resumeprotected String name()
AbstractLibFunctionname in class AbstractLibFunctionpublic abstract Object install(org.classdump.luna.StateContext context, org.classdump.luna.Table env, org.classdump.luna.ByteString modName, org.classdump.luna.ByteString origin)
protected void invoke(org.classdump.luna.runtime.ExecutionContext context,
ArgumentIterator args)
throws org.classdump.luna.runtime.ResolvedControlThrowable
AbstractLibFunctioncontext with arguments passed in
the iterator args.
This is the method that is meant to be implemented by the function implementation.
The function should not retain a reference to context or args
beyond the scope of its invocation. In particular, context and args
should not be part of suspended state if this method throws a control throwable.
context and args are guaranteed to be non-null when
the function is invoked via Dispatch.
invoke in class AbstractLibFunctioncontext - execution context, must not be nullargs - call arguments, must not be nullorg.classdump.luna.runtime.ResolvedControlThrowable - if the call initiates a non-local control changeCopyright © 2016–2017. All rights reserved.