org.eclipse.xtext.xbase.interpreter.impl
Class ClosureInvocationHandler

java.lang.Object
  extended by org.eclipse.xtext.xbase.interpreter.impl.AbstractClosureInvocationHandler
      extended by org.eclipse.xtext.xbase.interpreter.impl.ClosureInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ClosureInvocationHandler
extends AbstractClosureInvocationHandler

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
ClosureInvocationHandler(XClosure closure, IEvaluationContext context, IExpressionInterpreter interpreter, CancelIndicator indicator)
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  void initializeClosureParameters(IEvaluationContext context, java.lang.Object[] args)
           
protected  java.lang.String proxyToString(java.lang.Object proxy)
           
 
Methods inherited from class org.eclipse.xtext.xbase.interpreter.impl.AbstractClosureInvocationHandler
invoke, isEquals, isHashCode, isToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosureInvocationHandler

public ClosureInvocationHandler(XClosure closure,
                                IEvaluationContext context,
                                IExpressionInterpreter interpreter,
                                CancelIndicator indicator)
Method Detail

doInvoke

protected java.lang.Object doInvoke(java.lang.reflect.Method method,
                                    java.lang.Object[] args)
                             throws java.lang.Throwable
Specified by:
doInvoke in class AbstractClosureInvocationHandler
Throws:
java.lang.Throwable

initializeClosureParameters

protected void initializeClosureParameters(IEvaluationContext context,
                                           java.lang.Object[] args)

proxyToString

protected java.lang.String proxyToString(java.lang.Object proxy)
Overrides:
proxyToString in class AbstractClosureInvocationHandler