railo.runtime.reflection.pairs
Class MethodInstance

java.lang.Object
  extended by railo.runtime.reflection.pairs.MethodInstance

public final class MethodInstance
extends Object

class holds a Method and the parameter to call it


Constructor Summary
MethodInstance(Method method, Object[] args)
          constructor of the class
 
Method Summary
 Object[] getArgs()
           
 Method getMethod()
           
 Object invoke(Object o)
          Invokes the method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInstance

public MethodInstance(Method method,
                      Object[] args)
constructor of the class

Parameters:
method -
args -
Method Detail

invoke

public Object invoke(Object o)
              throws IllegalAccessException,
                     InvocationTargetException
Invokes the method

Parameters:
o - Object to invoke Method on it
Returns:
return value of the Method
Throws:
IllegalAccessException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
InvocationTargetException

getArgs

public Object[] getArgs()
Returns:
Returns the args.

getMethod

public Method getMethod()
Returns:
Returns the method.


Copyright © 2012 Railo