com.agical.rmock.core
Interface MethodHandle

All Known Implementing Classes:
ForwardingMethodHandle, InterfaceMethodHandle

public interface MethodHandle

A method handle represents an actual method implementation. Method handles are useful when creating intercepted objects or mocking concrete classes so that the actual implementation can be accessed an used from an action.
It also provides meta-data about the method that can be used to verify modifications etc.

(c) Agical AB 2005

Author:
joakim.ohlrogge

Method Summary
 Class[] getParameterTypes()
           
 Class getReturnType()
           
 Object invoke(Object[] args)
          Invokes the method
 

Method Detail

getReturnType

Class getReturnType()
Returns:
The return type of this method

getParameterTypes

Class[] getParameterTypes()
Returns:
the types of the arguments for this method.

invoke

Object invoke(Object[] args)
              throws Throwable
Invokes the method

Parameters:
args - The arguments to use
Returns:
the object returned by the method
Throws:
any - exception thrown by the method
Throwable


Copyright © 2005-2011 Agical AB. All Rights Reserved.