All Packages Class Hierarchy This Package Previous Next Index
Class jdsltools.testers.TesterArrays
java.lang.Object
|
+----jdsltools.testers.TesterArrays
- public class TesterArrays
- extends Object
- Author:
- Michael Boilen (mgb), Marco da Silva (mds)
-
TesterArrays()
- Class Constructor.
-
append(TesterArrays)
- Appends a TesterArray to this array and returns this array
-
argument(int)
- Returns a single type at a specific index.
-
arguments()
- Returns an array representing the declared argument list stored in the
type array.
-
parameter(int)
- Returns a single parameter at a specific index.
-
parameters()
- Returns an array representing the parameters stored in the parameter
array.
-
pushPair(Class, Object)
- Adds both a type and parameter to their respective arrays.
-
pushPair(Class, Object, int)
-
-
pushParam(Object)
- Adds a parameter the the parameter array.
-
pushParam(Object, int)
- Adds a parameter to the parameter array at a specific index.
-
pushType(Class)
- Adds a type to the type array.
-
pushType(Class, int)
- Adds a type to the type array at a specific index.
-
toString()
-
TesterArrays
public TesterArrays()
- Class Constructor.
pushType
public final TesterArrays pushType(Class type)
- Adds a type to the type array.
- Parameters:
- type - The
Class
representing a type to add.
- Returns:
- A reference to
this
pushType
public final TesterArrays pushType(Class type,
int index)
- Adds a type to the type array at a specific index. If the index
is invalid an error message is printed.
- Parameters:
- type - The
Class
representing a type to add.
- index - The location to insert type
- Returns:
- A reference to
this
pushParam
public final TesterArrays pushParam(Object param)
- Adds a parameter the the parameter array.
- Parameters:
- param - The parameter to add.
- Returns:
- A reference to
this
pushParam
public final TesterArrays pushParam(Object param,
int index)
- Adds a parameter to the parameter array at a specific index.
If the index is invalid an error message is printed.
- Parameters:
- param - The parameter to add.
- index - The location to insert the parameter
- Returns:
- A reference to
this
pushPair
public final TesterArrays pushPair(Class type,
Object param)
- Adds both a type and parameter to their respective arrays.
- Parameters:
- type - The
Class
representing the type to add.
- param - The parameter to add.
- Returns:
- A reference to
this
pushPair
public final TesterArrays pushPair(Class type,
Object param,
int index)
arguments
public final Class[] arguments()
- Returns an array representing the declared argument list stored in the
type array.
- Returns:
- The formal argument list as an array.
parameters
public final Object[] parameters()
- Returns an array representing the parameters stored in the parameter
array.
- Returns:
- The parameter list as an array.
parameter
public final Object parameter(int index)
- Returns a single parameter at a specific index. If the index was invalid
an error message is printed and null is returned.
- Parameters:
- index - The location to grab the parameter
- Returns:
- The parameter at index
argument
public final Class argument(int index)
- Returns a single type at a specific index. If the index was invalid
an error message is printed and null is returned.
- Parameters:
- index - The location to grab the type
- Returns:
- The requested
Class
append
public TesterArrays append(TesterArrays arrays)
- Appends a TesterArray to this array and returns this array
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index