|
||||||||||
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.runtime.sites.java.ClassProxy
public class ClassProxy
Field Summary |
---|
Fields inherited from class orc.runtime.values.Value |
---|
futureNotReady |
Method Summary | |
---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
static ClassProxy |
forClass(java.lang.Class c)
These objects are cached so that instances of a class can share the same method handles. |
java.lang.reflect.Field |
getField(Token token,
java.lang.String name)
Look up a field by name. |
java.lang.Object |
getMember(Token token,
java.lang.Object self,
java.lang.String name)
Get the value of an object member (method or field). |
MethodHandle |
getMethod(Token token,
java.lang.String methodName)
Look up a method by name. |
Type |
type()
|
Methods inherited from class orc.runtime.sites.Site |
---|
accept, createCall |
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 |
Method Detail |
---|
public static ClassProxy forClass(java.lang.Class c)
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 java.lang.Object getMember(Token token, java.lang.Object self, java.lang.String name) throws MessageNotUnderstoodException, CapabilityException, java.lang.SecurityException
java.lang.SecurityException
CapabilityException
MessageNotUnderstoodException
public java.lang.reflect.Field getField(Token token, java.lang.String name) throws java.lang.SecurityException, java.lang.NoSuchFieldException, CapabilityException
CapabilityException
java.lang.SecurityException
java.lang.NoSuchFieldException
public MethodHandle getMethod(Token token, java.lang.String methodName) throws MessageNotUnderstoodException, CapabilityException
CapabilityException
MessageNotUnderstoodException
public Type type()
type
in class Site
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |