Apache JMeter
2.1.1

org.apache.jorphan.reflect
Class Functor

java.lang.Object
  extended byorg.apache.jorphan.reflect.Functor

public class Functor
extends Object

Author:
mstover

Constructor Summary
Functor(Object invokee, String methodName)
          Create a functor with the invokee and a method name.
Functor(Object invokee, String methodName, Class[] types)
          Create a functor with the invokee, method name, and argument class types.
Functor(Object invokee, String methodName, Object[] args)
          Create a functor with an invokee, method name, and argument values.
Functor(Object invokee, String methodName, Object[] args, Class[] types)
          Create a functor with an invokee, method name, argument values, and argument class types.
Functor(String methodName)
          Create a functor with just the method name.
Functor(String methodName, Class[] types)
          Create a functor with the method name and argument class types.
Functor(String methodName, Object[] args)
           
 
Method Summary
protected  Class[] getNewArray(int i, Class replacement, Class[] orig)
           
protected  Class getPrimitive(Class t)
           
 Object invoke()
           
 Object invoke(Object p_invokee)
           
 Object invoke(Object[] p_args)
           
 Object invoke(Object p_invokee, Object[] p_args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functor

public Functor(Object invokee,
               String methodName)
Create a functor with the invokee and a method name.

Parameters:
invokee -
methodName -

Functor

public Functor(Object invokee,
               String methodName,
               Class[] types)
Create a functor with the invokee, method name, and argument class types.

Parameters:
invokee -
methodName -
types -

Functor

public Functor(String methodName)
Create a functor with just the method name.

Parameters:
methodName -

Functor

public Functor(String methodName,
               Class[] types)
Create a functor with the method name and argument class types.

Parameters:
methodName -
types -

Functor

public Functor(Object invokee,
               String methodName,
               Object[] args)
Create a functor with an invokee, method name, and argument values.

Parameters:
invokee -
methodName -
args -

Functor

public Functor(String methodName,
               Object[] args)

Functor

public Functor(Object invokee,
               String methodName,
               Object[] args,
               Class[] types)
Create a functor with an invokee, method name, argument values, and argument class types.

Parameters:
invokee -
methodName -
args -
types -
Method Detail

invoke

public Object invoke()

invoke

public Object invoke(Object p_invokee)

invoke

public Object invoke(Object[] p_args)

invoke

public Object invoke(Object p_invokee,
                     Object[] p_args)

getPrimitive

protected Class getPrimitive(Class t)

getNewArray

protected Class[] getNewArray(int i,
                              Class replacement,
                              Class[] orig)

Apache JMeter
2.1.1

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.