|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.ArgumentList
public class ArgumentList
ArgumentList.
ArgumentList provides methods for building an argument list for use
in a DynamicCall.
| Field Summary | |
|---|---|
protected int |
argumentCount
Count of arguments. |
protected java.lang.Object[] |
arguments
Argument values. |
protected java.lang.Class[] |
classes
Class for each argument. |
| Constructor Summary | |
|---|---|
ArgumentList()
Construct empty argument for method taking no parameters. |
|
ArgumentList(int argumentCount)
Construct argument list which can hold specified number of parameters. |
|
| Method Summary | |
|---|---|
java.lang.Class[] |
getArgumentClasses()
Get classes corresponding to each argument. |
java.lang.Object[] |
getArguments()
Get argument values as list of objects. |
int |
setArgument(boolean b)
Set the next argument to a boolean value. |
int |
setArgument(byte b)
Set the next argument to a byte value. |
int |
setArgument(char c)
Set the next argument to a character value. |
int |
setArgument(double d)
Set the next argument to a double value. |
int |
setArgument(float f)
Set the next argument to a float value. |
int |
setArgument(int i)
Set the next argument to an integer value. |
int |
setArgument(int argumentNumber,
boolean b)
Set specified argument to a boolean value. |
int |
setArgument(int argumentNumber,
byte b)
Set specified argument to a byte value. |
int |
setArgument(int argumentNumber,
char c)
Set specified argument to a char value. |
int |
setArgument(int argumentNumber,
double d)
Set specified argument to a double value. |
int |
setArgument(int argumentNumber,
float f)
Set specified argument to a float value. |
int |
setArgument(int argumentNumber,
int i)
Set specified argument to an integer value. |
int |
setArgument(int argumentNumber,
long l)
Set specified argument to a long value. |
int |
setArgument(int argumentNumber,
java.lang.Object object)
Set specified argument to an object. |
int |
setArgument(int argumentNumber,
java.lang.Object object,
java.lang.Class theClass)
Set value of specific argument. |
int |
setArgument(int argumentNumber,
short s)
Set specified argument to a short value. |
int |
setArgument(long l)
Set the next argument to a long value. |
int |
setArgument(java.lang.Object object)
Set the next argument to an object. |
int |
setArgument(java.lang.Object object,
java.lang.Class theClass)
Sets the next argument to an object. |
int |
setArgument(short s)
Set the next argument to a short value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class[] classes
protected java.lang.Object[] arguments
protected int argumentCount
| Constructor Detail |
|---|
public ArgumentList()
public ArgumentList(int argumentCount)
argumentCount - The number of parameters. | Method Detail |
|---|
public java.lang.Class[] getArgumentClasses()
public java.lang.Object[] getArguments()
public int setArgument(int argumentNumber,
java.lang.Object object,
java.lang.Class theClass)
argumentNumber - Index of argument to set.object - The value of the argument as an object.theClass - The type of the argument as a class.
public int setArgument(boolean b)
b - The boolean value.
public int setArgument(int argumentNumber,
boolean b)
argumentNumber - The index of the argument to set.b - The boolean value.
public int setArgument(byte b)
b - The byte value.
public int setArgument(int argumentNumber,
byte b)
argumentNumber - The index of the argument to set.b - The byte value.
public int setArgument(char c)
c - The character value.
public int setArgument(int argumentNumber,
char c)
argumentNumber - The index of the argument to set.c - The char value.
public int setArgument(int i)
i - The integer value.
public int setArgument(int argumentNumber,
int i)
argumentNumber - The index of the argument to set.i - The integer value.
public int setArgument(short s)
s - The short value.
public int setArgument(int argumentNumber,
short s)
argumentNumber - The index of the argument to set.s - The short value.
public int setArgument(long l)
l - The long value.
public int setArgument(int argumentNumber,
long l)
argumentNumber - The index of the argument to set.l - The long value.
public int setArgument(float f)
f - The float value.
public int setArgument(int argumentNumber,
float f)
argumentNumber - The index of the argument to set.f - The float value.
public int setArgument(double d)
d - The double value.
public int setArgument(int argumentNumber,
double d)
argumentNumber - The index of the argument to set.d - The double value.
public int setArgument(java.lang.Object object)
object - The object.
public int setArgument(int argumentNumber,
java.lang.Object object)
argumentNumber - The index of the argument to set.object - The object.
public int setArgument(java.lang.Object object,
java.lang.Class theClass)
object - The object.theClass - The class of the object.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||