org.eclipse.xtext.xbase.interpreter.impl
Class AbstractClosureInvocationHandler
java.lang.Object
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
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 |
AbstractClosureInvocationHandler
public AbstractClosureInvocationHandler()
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)
- Parameters:
proxy
- the proxy instance. May be used by inheritors.
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)