com.agical.rmock.core.util
Class ForwardingMethodHandle
java.lang.Object
com.agical.rmock.core.util.ForwardingMethodHandle
- All Implemented Interfaces:
- MethodHandle
public class ForwardingMethodHandle
- extends Object
- implements MethodHandle
(c) Agical AB 2005
- Author:
- brolund
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardingMethodHandle
public ForwardingMethodHandle(Object proxy,
net.sf.cglib.proxy.MethodProxy methodProxy,
String objectId,
String method,
Class[] parameterTypes,
Class returnType)
getReturnType
public Class getReturnType()
- Specified by:
getReturnType
in interface MethodHandle
- Returns:
- The return type of this method
getParameterTypes
public Class[] getParameterTypes()
- Specified by:
getParameterTypes
in interface MethodHandle
- Returns:
- the types of the arguments for this method.
invoke
public Object invoke(Object[] args)
throws Throwable
- Description copied from interface:
MethodHandle
- Invokes the method
- Specified by:
invoke
in interface MethodHandle
- Parameters:
args
- The arguments to use
- Returns:
- the object returned by the method
- Throws:
Throwable
Copyright © 2005-2011 Agical AB. All Rights Reserved.