orc.runtime.sites.java
Class ObjectProxy

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.EvalSite
              extended by orc.runtime.sites.java.ObjectProxy
All Implemented Interfaces:
Callable, Future
Direct Known Subclasses:
ThreadedObjectProxy

public class ObjectProxy
extends EvalSite

A Java object being used as an Orc Site. This allows you to get a reference to methods on the object using dot notation (like a DotSite).

Author:
dkitchin

Constructor Summary
ObjectProxy(java.lang.Object inst)
           
 
Method Summary
 Value evaluate(Args args)
           
protected  MethodProxy getMethodProxy(java.lang.String methodName)
           
 
Methods inherited from class orc.runtime.sites.EvalSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, head, isCons, isNil, isNone, isSome, signal, tail, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectProxy

public ObjectProxy(java.lang.Object inst)
Method Detail

evaluate

public Value evaluate(Args args)
               throws TokenException
Specified by:
evaluate in class EvalSite
Throws:
TokenException

getMethodProxy

protected MethodProxy getMethodProxy(java.lang.String methodName)
                              throws TokenException
Throws:
TokenException