info.javelot.functionalj.reflect.element
Class ReflectJdkInstanceMethod
java.lang.Object
info.javelot.functionalj.reflect.element.ReflectInstanceMethod
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
Method Summary |
protected Object |
invoke(Object p_object,
Object[] p_params)
Invokes the target instance method on the specified object, passing the
given parameters. |
ReflectJdkInstanceMethod
public ReflectJdkInstanceMethod(Method p_method)
- Constructs a reflect element for a JDK instance method.
- Parameters:
p_method
- the reflect instance method.
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.