|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.runtime.values.Value orc.runtime.sites.Site orc.lib.util.Apply
public class Apply
Apply a callable to a list of arguments. HACK: this is a subclass of site but has slightly different semantics: the callable argument is forced as a call (i.e. free variables in the callable are not forced).
Field Summary |
---|
Fields inherited from class orc.runtime.values.Value |
---|
futureNotReady |
Constructor Summary | |
---|---|
Apply()
|
Method Summary | |
---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
void |
createCall(Token caller,
java.util.List<java.lang.Object> args,
TokenContinuation nextNode)
Invoked by a Call to invoke a site. |
Type |
type()
|
Methods inherited from class orc.runtime.sites.Site |
---|
accept |
Methods inherited from class orc.runtime.values.Value |
---|
forceArg, forceCall, signal, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Apply()
Method Detail |
---|
public void createCall(Token caller, java.util.List<java.lang.Object> args, TokenContinuation nextNode) throws TokenException
Site
createCall
in interface Callable
createCall
in class Site
caller
- token for which the call is being made: points to the call nodeargs
- argument listnextNode
- next node after the call node, to which the result should be sent
TokenException
Callable.createCall(Token, List, TokenContinuation)
public void callSite(Args args, Token caller) throws TokenException
Site
callSite
in class Site
args
- list of argument valuescaller
- where the result should be sent
TokenException
public Type type()
type
in class Site
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |