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

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

public abstract class AbstractClosureInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
AbstractClosureInvocationHandler()
           
 
Method Summary
protected abstract  java.lang.Object doInvoke(java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  boolean isEquals(java.lang.reflect.Method method)
           
protected  boolean isHashCode(java.lang.reflect.Method method)
           
protected  boolean isToString(java.lang.reflect.Method method)
           
protected  java.lang.String proxyToString(java.lang.Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractClosureInvocationHandler

public AbstractClosureInvocationHandler()
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

proxyToString

protected java.lang.String proxyToString(java.lang.Object proxy)

doInvoke

protected abstract java.lang.Object doInvoke(java.lang.reflect.Method method,
                                             java.lang.Object[] args)
                                      throws java.lang.Throwable
Throws:
java.lang.Throwable

isHashCode

protected boolean isHashCode(java.lang.reflect.Method method)

isToString

protected boolean isToString(java.lang.reflect.Method method)

isEquals

protected boolean isEquals(java.lang.reflect.Method method)