|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.compiler.OpMapVector
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.
Field Summary | |
protected int |
m_blocksize
Size of blocks to allocate |
protected int |
m_lengthPos
Position where size of array is kept |
protected int[] |
m_map
Array of ints |
protected int |
m_mapSize
Size of array |
Constructor Summary | |
OpMapVector(int blocksize,
int increaseSize,
int lengthPos)
Construct a OpMapVector, using the given block size. |
Method Summary | |
int |
elementAt(int i)
Get the nth element. |
void |
setElementAt(int value,
int index)
Sets the component at the specified index of this vector to be the specified object. |
void |
setToSize(int size)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int m_blocksize
protected int[] m_map
protected int m_lengthPos
protected int m_mapSize
Constructor Detail |
public OpMapVector(int blocksize, int increaseSize, int lengthPos)
blocksize
- Size of block to allocateMethod Detail |
public final int elementAt(int i)
i
- index of object to get
public final void setElementAt(int value, int index)
index
- Index of where to set the objectpublic final void setToSize(int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |