| java.lang.Object org.apache.xpath.compiler.OpMapVector
OpMapVector | public class OpMapVector (Code) | | Like IntVector, but used only for the OpMap array. Length of array
is kept in the m_lengthPos position of the array. Only the required methods
are in included here.
|
Constructor Summary | |
public | OpMapVector(int blocksize, int increaseSize, int lengthPos) Construct a OpMapVector, using the given block size. |
Method Summary | |
final public int | elementAt(int i) Get the nth element. | final public void | setElementAt(int value, int index) Sets the component at the specified index of this vector to be the
specified object. | final public void | setToSize(int size) |
m_blocksize | protected int m_blocksize(Code) | | Size of blocks to allocate
|
m_lengthPos | protected int m_lengthPos(Code) | | Position where size of array is kept
|
m_map | protected int m_map(Code) | | Array of ints
|
m_mapSize | protected int m_mapSize(Code) | | Size of array
|
OpMapVector | public OpMapVector(int blocksize, int increaseSize, int lengthPos)(Code) | | Construct a OpMapVector, using the given block size.
Parameters: blocksize - Size of block to allocate |
elementAt | final public int elementAt(int i)(Code) | | Get the nth element.
Parameters: i - index of object to get object at given index |
setElementAt | final public void setElementAt(int value, int index)(Code) | | Sets the component at the specified index of this vector to be the
specified object. The previous component at that position is discarded.
The index must be a value greater than or equal to 0 and less
than the current size of the vector.
Parameters: value - object to set Parameters: index - Index of where to set the object |
setToSize | final public void setToSize(int size)(Code) | | |
|
|