ua.gradsoft.termware.jsr223
Class TermWareSystemInvocationHandler

java.lang.Object
  extended by ua.gradsoft.termware.jsr223.TermWareSystemInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class TermWareSystemInvocationHandler
extends Object
implements InvocationHandler

Invocation handler for TermSystem. Obj.f(x1..xn) interpreted as redusing of term f(x1...xN) in system.

Author:
rssh

Constructor Summary
TermWareSystemInvocationHandler(TermSystem termSystem, TermWareScriptEngine engine)
          Creates a new instance of TermWareSystemInvocationHandler
 
Method Summary
 Object invoke(Object proxy, Method m, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermWareSystemInvocationHandler

public TermWareSystemInvocationHandler(TermSystem termSystem,
                                       TermWareScriptEngine engine)
Creates a new instance of TermWareSystemInvocationHandler

Method Detail

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws ScriptException,
                     NoSuchMethodException
Specified by:
invoke in interface InvocationHandler
Throws:
ScriptException
NoSuchMethodException