orc.runtime.sites.java
Class MethodProxy
java.lang.Object
orc.runtime.values.Value
orc.runtime.sites.Site
orc.runtime.sites.java.MethodProxy
- All Implemented Interfaces:
- Callable
public class MethodProxy
- extends Site
Allow a Java method to be used as an Orc site.
MAGIC: pausible methods are run in a Kilim task.
We actually go to some lengths to avoid running
non-pausable methods in a Kilim task to ensure that
if this site is wrapped by ThreadSite, the method
will actually run in its own thread and not in the
Kilim thread.
- Author:
- quark, dkitchin
Method Summary |
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MethodProxy
public MethodProxy(java.lang.Object instance,
MethodHandle delegate)
callSite
public void callSite(Args args,
Token caller)
throws TokenException
- Description copied from class:
Site
- Must be implemented by subclasses to implement the site behavior
- Specified by:
callSite
in class Site
- Parameters:
args
- list of argument valuescaller
- where the result should be sent
- Throws:
TokenException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object