|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jagg.MethodCall
public class MethodCall
A MethodCall bundles a Method object and an array
of parameter values together so they can go together into a Map
as the value. This class existed as a private inner class of
MethodCache prior to version 0.5.0, but for 0.5.0, it was
pulled out and made public.
| Constructor Summary | |
|---|---|
MethodCall(java.lang.reflect.Method method,
java.lang.Object[] parameters)
Constructs a MethodCall. |
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getReturnType()
Returns the return type of the MethodCall. |
java.lang.Object |
invoke(java.lang.Object object)
Invokes the internal Method using the internal parameters,
and returns the result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodCall(java.lang.reflect.Method method,
java.lang.Object[] parameters)
MethodCall.
method - The Method.parameters - The array of parameter values.| Method Detail |
|---|
public java.lang.Class<?> getReturnType()
MethodCall.
Class object representing the return type of the
method.
public java.lang.Object invoke(java.lang.Object object)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
Method using the internal parameters,
and returns the result.
object - The object on which to invoke the Method.
Method.
java.lang.IllegalAccessException - If the Method is inaccessible
(private, etc.)
java.lang.reflect.InvocationTargetException - If the Method throws an
Exception during execution.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||