JMMF API
pre-release v0.5

fr.umlv.jmmf.reflect
Class RequestObject

java.lang.Object
  |
  +--fr.umlv.jmmf.reflect.RequestObject
Direct Known Subclasses:
InvocationRequest, MethodMappingRequest

public class RequestObject
extends java.lang.Object

MUST BE TRANSFERED IN THE UTIL PACKAGE !!!

Version:
0.5.5
Author:
Remi Forax

Constructor Summary
protected RequestObject()
          default constructor.
 
Method Summary
 java.lang.Object[] getParameters()
          get parameters of the requested method.
 java.lang.Class[] getParameterTypes()
          get parameter type of the requested method.
protected  void init(java.lang.Object[] args, java.lang.Class[] types)
          init all fields.
 void insertParameter(java.lang.Object arg, java.lang.Class type, int index)
          insert a parameter and it's type into the parameter list.
 void setParameters(java.lang.Object[] args)
          set parameters of the requested method.
 void setParameters(java.lang.Object[] args, java.lang.Class[] types)
          set the arguments of the requested method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestObject

protected RequestObject()
default constructor.
Method Detail

init

protected void init(java.lang.Object[] args,
                    java.lang.Class[] types)
init all fields.

getParameters

public java.lang.Object[] getParameters()
get parameters of the requested method.
Returns:
an array of object that contains parameters of the requested method, the array may be null.
See Also:
setParameters(Object[],Class[]), getParameterTypes()

getParameterTypes

public java.lang.Class[] getParameterTypes()
get parameter type of the requested method.
Returns:
an array of class that contains parameter types of the requested method, the array may be null.
See Also:
getParameters()

setParameters

public void setParameters(java.lang.Object[] args)
set parameters of the requested method. The types of the new parameters if processed by call the method @link Object.getClass() on each parameter. WARNING: with primitive type (int, boolean, etc...) the processed type is the wrapper type (Integer, Boolean, etc...) and not the real primitive type (Integer.TYPE, Boolean.TYPE, etc..). With primitive type, use instead
Parameters:
args - an array of object that contains the new parameters of the requested method.
See Also:
setParameters(Object[],Class[]), getParameters()

setParameters

public void setParameters(java.lang.Object[] args,
                          java.lang.Class[] types)
set the arguments of the requested method.
Parameters:
args - an array of object that contains the new parameters of the requested method.
types - an array of class that contains the types of the new parameters.
See Also:
getParameters(), getParameterTypes()

insertParameter

public void insertParameter(java.lang.Object arg,
                            java.lang.Class type,
                            int index)
insert a parameter and it's type into the parameter list.
Parameters:
arg - parameter value.
type - type of the parameter.
index - must be in range [0..parameters.length].

JMMF API
pre-release v0.5

Rémi Forax 1999,2000 Université de Marne la Vallée