APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.compiler

public Class OpMapVector

extends Object
Class Inheritance

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

Modifier and TypeField and Description
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

AccessConstructor and Description
public
OpMapVector(int
Size of block to allocate
blocksize
,
int increaseSize, int lengthPos)

Construct a OpMapVector, using the given block size.

Method Summary

Modifier and TypeMethod and Description
public final int

Returns:

object at given index
elementAt
(int
index of object to get
i
)

Get the nth element.

public final void
setElementAt(int
object to set
value
,
int
Index of where to set the object
index
)

Sets the component at the specified index of this vector to be the specified object.

public final void
setToSize(int size)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_blocksizeback to summary
protected int m_blocksize

Size of blocks to allocate

m_lengthPosback to summary
protected int m_lengthPos

Position where size of array is kept

m_mapback to summary
protected int[] m_map

Array of ints

m_mapSizeback to summary
protected int m_mapSize

Size of array

Constructor Detail

OpMapVectorback to summary
public OpMapVector(int blocksize, int increaseSize, int lengthPos)

Construct a OpMapVector, using the given block size.

Parameters
blocksize:int

Size of block to allocate

Method Detail

elementAtback to summary
public final int elementAt(int i)

Get the nth element.

Parameters
i:int

index of object to get

Returns:int

object at given index

setElementAtback to summary
public final void setElementAt(int value, int index)

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:int

object to set

index:int

Index of where to set the object

setToSizeback to summary
public final void setToSize(int size)