JavaTron
Class WrappedMethod

java.lang.Object
  |
  +--JavaTron.WrappedMethod

public class WrappedMethod
extends java.lang.Object

Class to wrap up a target, it's method, and arguments to the method


Field Summary
 java.lang.Object[] args
           
 java.lang.reflect.Method m
           
 java.lang.Object target
           
 
Constructor Summary
WrappedMethod(java.lang.Object target_, java.lang.reflect.Method m_, java.lang.Object[] args_)
           
 
Method Summary
 java.lang.Object invoke()
          Invoke the wrapped method on the wrapped target with the wrapped args
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

public java.lang.Object target

m

public java.lang.reflect.Method m

args

public java.lang.Object[] args
Constructor Detail

WrappedMethod

public WrappedMethod(java.lang.Object target_,
                     java.lang.reflect.Method m_,
                     java.lang.Object[] args_)
Method Detail

invoke

public java.lang.Object invoke()
                        throws java.lang.IllegalAccessException,
                               java.lang.IllegalArgumentException,
                               java.lang.reflect.InvocationTargetException
Invoke the wrapped method on the wrapped target with the wrapped args

java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
See Also:
Method.invoke(java.lang.Object, java.lang.Object[])