com.agical.rmock.core.util
Class InterfaceMethodHandle
java.lang.Object
com.agical.rmock.core.util.InterfaceMethodHandle
- All Implemented Interfaces:
- MethodHandle
public class InterfaceMethodHandle
- extends Object
- implements MethodHandle
(c) Agical AB 2005
- Author:
- joakim.ohlrogge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterfaceMethodHandle
public InterfaceMethodHandle(String objectId,
String method,
Class[] parameterTypes,
Class returnType,
ProxyFactory proxyFactory)
- Parameters:
returnValue
- parameterTypes
- returnType
-
getReturnType
public Class getReturnType()
- Specified by:
getReturnType
in interface MethodHandle
- Returns:
- The return type of this method
- See Also:
MethodHandle.getReturnType()
getParameterTypes
public Class[] getParameterTypes()
- Specified by:
getParameterTypes
in interface MethodHandle
- Returns:
- the types of the arguments for this method.
- See Also:
MethodHandle.getParameterTypes()
invoke
public Object invoke(Object[] args)
throws Exception
- 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:
Exception
- See Also:
MethodHandle.invoke(java.lang.Object[])
Copyright © 2005-2011 Agical AB. All Rights Reserved.