|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.javelot.functionalj.reflect.element.ReflectInstanceMethod
public abstract class ReflectInstanceMethod
Represents a reflect instance method.
| Constructor Summary | |
|---|---|
ReflectInstanceMethod(Method p_method)
Constructs a reflect element for an instance method. |
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of the reflect element. |
Class[] |
getParameterTypes()
Returns the types of the parameters to the reflect element. |
Object |
invoke(Object[] p_params)
Invokes the target instance method, using the first parameter as the object on which to invoke the method, and passing the rest of the parameters to the method. |
protected abstract Object |
invoke(Object p_object,
Object[] p_params)
Invokes the target instance method on the specified object, passing the given parameters. |
String |
toString()
String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectInstanceMethod(Method p_method)
p_method - the reflect instance method.| Method Detail |
|---|
public String getName()
ReflectElement
getName in interface ReflectElementpublic Class[] getParameterTypes()
ReflectElement
getParameterTypes in interface ReflectElement
public Object invoke(Object[] p_params)
throws Exception
invoke in interface ReflectElementp_params - the target object on which to invoke the method, followed by
the parameters to be passed to the method.
Exception - thrown if an exception occurs when invoking the method.
protected abstract Object invoke(Object p_object,
Object[] p_params)
throws Exception
p_object - the target object on which to invoke the method.p_params - the parameters to be passed to the method.
Exception - thrown if an exception occurs when invoking the method.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||