org.apache.xml.utils
public class NodeVector extends Object implements Serializable, Cloneable
UNKNOWN: internal
Constructor Summary | |
---|---|
NodeVector()
Default constructor. | |
NodeVector(int blocksize)
Construct a NodeVector, using the given block size.
|
Method Summary | |
---|---|
void | addElement(int value)
Append a Node onto the vector.
|
void | appendNodes(NodeVector nodes)
Append the nodes to the list.
|
Object | clone()
Get a cloned LocPathIterator.
|
boolean | contains(int s)
Tell if the table contains the given node.
|
int | elementAt(int i)
Get the nth element.
|
int | indexOf(int elem, int index)
Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.
|
int | indexOf(int elem)
Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.
|
void | insertElementAt(int value, int at)
Inserts the specified node in this vector at the specified index.
|
void | insertInOrder(int value)
Insert a node in order in the list.
|
int | peepOrNull()
Return the node at the top of the stack without popping the stack.
|
int | peepTail()
Return the node at the tail of the vector without popping
Special purpose method for TransformerImpl, pushElemTemplateElement.
|
int | peepTailSub1()
Return the node one position from the tail without popping.
|
int | pop()
Pop a node from the tail of the vector and return the result.
|
int | popAndTop()
Pop a node from the tail of the vector and return the
top of the stack after the pop.
|
void | popPair()
Pop a pair of nodes from the tail of the stack.
|
void | popQuick()
Pop a node from the tail of the vector. |
void | push(int value)
Append a Node onto the vector.
|
void | pushPair(int v1, int v2)
Push a pair of nodes into the stack.
|
void | removeAllElements()
Inserts the specified node in this vector at the specified index.
|
boolean | removeElement(int s)
Removes the first occurrence of the argument from this vector.
|
void | removeElementAt(int i)
Deletes the component at the specified index. |
void | RemoveAllNoClear()
Set the length to zero, but don't clear the array. |
void | setElementAt(int node, int index)
Sets the component at the specified index of this vector to be the
specified object. |
void | setTail(int n)
Set the tail of the stack to the given node.
|
void | setTailSub1(int n)
Set the given node one position from the tail.
|
int | size()
Get the length of the list.
|
void | sort(int[] a, int lo0, int hi0)
Sort an array using a quicksort algorithm.
|
void | sort()
Sort an array using a quicksort algorithm.
|
Parameters: blocksize Size of blocks to allocate
Parameters: value Node to add to the vector
Parameters: nodes NodeVector to append to this list
Returns: A clone of this
Throws: CloneNotSupportedException
Parameters: s Node to look for
Returns: True if the given node was found.
Parameters: i Index of node to get
Returns: Node at specified index
Parameters: elem Node to look for index Index of where to start the search
Returns: the index of the first occurrence of the object argument in this vector at position index or later in the vector; returns -1 if the object is not found.
Parameters: elem Node to look for
Returns: the index of the first occurrence of the object argument in this vector at position index or later in the vector; returns -1 if the object is not found.
Parameters: value Node to insert at Position where to insert
Parameters: value Node to insert
Returns: Node at the top of the stack or null if stack is empty.
Returns: Node at the tail of the vector
Returns: Node one away from the tail
Returns: the node at the tail of the vector
Returns: The top of the stack after it's been popped
Parameters: value Node to add to the vector
Parameters: v1 First node to add to vector v2 Second node to add to vector
Parameters: s Node to remove from the list
Returns: True if the node was successfully removed
Parameters: i Index of node to remove
Parameters: node Node to set index Index of where to set the node
Parameters: n Node to set at the tail of vector
Parameters: n Node to set
Returns: Number of nodes in this NodeVector
Parameters: a The array to be sorted. lo0 The low index. hi0 The high index.
Throws: Exception
Throws: Exception