adavid.reflect
Class ObjectMethod
java.lang.Object
|
+--adavid.reflect.ObjectMethod
- public class ObjectMethod
- extends java.lang.Object
ObjectMethod
this is a method with its Object invoker, the accessed methods may only be public
Constructor Summary |
ObjectMethod(java.lang.Object invoker,
java.lang.String name,
java.lang.Class[] args)
contructor: |
Method Summary |
java.lang.Object |
invoke(java.lang.Object[] args)
invoke the method, just with the arguments |
java.lang.String |
toString()
overload of Object.toString() |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ObjectMethod
public ObjectMethod(java.lang.Object invoker,
java.lang.String name,
java.lang.Class[] args)
throws java.lang.NoSuchMethodException,
java.lang.SecurityException
- contructor:
- Parameters:
invoker
- the object which invokes the methodname
- the name of the method to be calledargs
- the signature(type) of the the arguments
invoke
public java.lang.Object invoke(java.lang.Object[] args)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
- invoke the method, just with the arguments
toString
public java.lang.String toString()
- overload of Object.toString()
- Overrides:
- toString in class java.lang.Object