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

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

public class DelegatingInvocationHandler
extends AbstractClosureInvocationHandler

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
static class DelegatingInvocationHandler.DelegationFailedException
           
 
Constructor Summary
DelegatingInvocationHandler(java.lang.Object receiver, java.lang.Class<?> interfaceType)
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  java.lang.reflect.Method findMethod(java.lang.Class<?> interfaceType)
           
 
Methods inherited from class org.eclipse.xtext.xbase.interpreter.impl.AbstractClosureInvocationHandler
invoke, isEquals, isHashCode, isToString, proxyToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingInvocationHandler

public DelegatingInvocationHandler(java.lang.Object receiver,
                                   java.lang.Class<?> interfaceType)
Method Detail

findMethod

protected java.lang.reflect.Method findMethod(java.lang.Class<?> interfaceType)

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