jasp.util
Class pVector

java.lang.Object
  |
  +--jasp.util.pVector

public class pVector
extends java.lang.Object

This class implements a collection for storing the dynamic parameters. For example: the parameters of Array function is not fixed, pVector can store its parameters so that J-ASP can handle Array function easily.


Constructor Summary
pVector()
          Constructs an empty pVector to store the parameter.
 
Method Summary
 pVector add(boolean v)
          Appends a Boolean value to the end of this pVector.
 pVector add(byte v)
          Appends a byte value to the end of this pVector.
 pVector add(double v)
          Appends a double value to the end of this pVector.
 pVector add(int v)
          Appends an integer value to the end of this pVector.
 pVector add(java.lang.Object v)
          Appends the specified element to the end of this pVector.
 pVector add(short v)
          Appends a short value to the end of this pVector.
 int getCount()
          Returns the number of elements in this pVector.
 java.lang.Object getItem(int index)
          Returns the element at the specified position in this pVector.
 java.util.Vector getTypeInfo()
          Returns the class name of all elements of the pVector.
 java.lang.Object[] toArray()
          Returns an array containing all of the elements in this pVector in order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

pVector

public pVector()
Constructs an empty pVector to store the parameter.
Method Detail

add

public pVector add(int v)
Appends an integer value to the end of this pVector.
Returns:
this object.

add

public pVector add(byte v)
Appends a byte value to the end of this pVector.
Returns:
this object.

add

public pVector add(short v)
Appends a short value to the end of this pVector.
Returns:
this object.

add

public pVector add(double v)
Appends a double value to the end of this pVector.
Returns:
this object.

add

public pVector add(boolean v)
Appends a Boolean value to the end of this pVector.
Returns:
this object.

add

public pVector add(java.lang.Object v)
Appends the specified element to the end of this pVector.
Returns:
this object.

getItem

public java.lang.Object getItem(int index)
Returns the element at the specified position in this pVector.
Returns:
this object.

getCount

public int getCount()
Returns the number of elements in this pVector.
Returns:
the number of the elements.

toArray

public java.lang.Object[] toArray()
Returns an array containing all of the elements in this pVector in order.
Returns:
an array containing all elements of the pVector.

getTypeInfo

public java.util.Vector getTypeInfo()
Returns the class name of all elements of the pVector.
Returns:
the class name of the elements.