info.javelot.functionalj.reflect.element
Class ReflectJdkInstanceMethod

java.lang.Object
  extended by info.javelot.functionalj.reflect.element.ReflectInstanceMethod
      extended by info.javelot.functionalj.reflect.element.ReflectJdkInstanceMethod
All Implemented Interfaces:
ReflectElement
Direct Known Subclasses:
ReflectCglibInstanceMethod

public class ReflectJdkInstanceMethod
extends ReflectInstanceMethod

Represents a reflect JDK instance method.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
ReflectJdkInstanceMethod(Method p_method)
          Constructs a reflect element for a JDK instance method.
 
Method Summary
protected  Object invoke(Object p_object, Object[] p_params)
          Invokes the target instance method on the specified object, passing the given parameters.
 
Methods inherited from class info.javelot.functionalj.reflect.element.ReflectInstanceMethod
getName, getParameterTypes, invoke, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectJdkInstanceMethod

public ReflectJdkInstanceMethod(Method p_method)
Constructs a reflect element for a JDK instance method.

Parameters:
p_method - the reflect instance method.
Method Detail

invoke

protected Object invoke(Object p_object,
                        Object[] p_params)
                 throws Exception
Description copied from class: ReflectInstanceMethod
Invokes the target instance method on the specified object, passing the given parameters.

Specified by:
invoke in class ReflectInstanceMethod
Parameters:
p_object - the target object on which to invoke the method.
p_params - the parameters to be passed to the method.
Returns:
the result of invoking the method.
Throws:
Exception - thrown if an exception occurs when invoking the method.