|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.xml.utils.NodeVector
**For internal use only** A very simple table that stores a list of Nodes.
| Constructor Summary | |
NodeVector()
Default constructor. |
|
NodeVector(int blocksize)
Construct a NodeVector, using the given block size. |
|
| Method Summary | |
void |
addElement(Node value)
Append a Node onto the vector. |
void |
appendNodes(NodeVector nodes)
Append the nodes to the list. |
java.lang.Object |
clone()
Get a cloned LocPathIterator. |
boolean |
contains(Node s)
Tell if the table contains the given node. |
Node |
elementAt(int i)
Get the nth element. |
int |
indexOf(Node elem)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
int |
indexOf(Node 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. |
void |
insertElementAt(Node value,
int at)
Inserts the specified node in this vector at the specified index. |
Node |
peepOrNull()
Return the node at the top of the stack without popping the stack. |
Node |
peepTail()
Return the node at the tail of the vector without popping Special purpose method for TransformerImpl, pushElemTemplateElement. |
Node |
peepTailSub1()
Return the node one position from the tail without popping. |
Node |
pop()
Pop a node from the tail of the vector and return the result. |
Node |
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(Node value)
Append a Node onto the vector. |
void |
pushPair(Node v1,
Node v2)
Push a pair of nodes into the stack. |
void |
removeAllElements()
Inserts the specified node in this vector at the specified index. |
boolean |
removeElement(Node s)
Removes the first occurrence of the argument from this vector. |
void |
removeElementAt(int i)
Deletes the component at the specified index. |
void |
setElementAt(Node node,
int index)
Sets the component at the specified index of this vector to be the specified object. |
void |
setTail(Node n)
Set the tail of the stack to the given node. |
void |
setTailSub1(Node n)
Set the given node one position from the tail. |
int |
size()
Get the length of the list. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public NodeVector()
public NodeVector(int blocksize)
blocksize - Size of blocks to allocate| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public int size()
public void addElement(Node value)
value - Node to add to the vectorpublic final void push(Node value)
value - Node to add to the vectorpublic final Node pop()
public final Node popAndTop()
public final void popQuick()
public final Node peepOrNull()
public final void pushPair(Node v1,
Node v2)
v1 - First node to add to vectorv2 - Second node to add to vectorpublic final void popPair()
public final void setTail(Node n)
n - Node to set at the tail of vectorpublic final void setTailSub1(Node n)
n - Node to setpublic final Node peepTail()
public final Node peepTailSub1()
public void insertElementAt(Node value,
int at)
value - Node to insertat - Position where to insertpublic void appendNodes(NodeVector nodes)
nodes - NodeVector to append to this listpublic void removeAllElements()
public boolean removeElement(Node s)
s - Node to remove from the listpublic void removeElementAt(int i)
i - Index of node to remove
public void setElementAt(Node node,
int index)
node - Node to setindex - Index of where to set the nodepublic Node elementAt(int i)
i - Index of node to getpublic boolean contains(Node s)
s - Node to look for
public int indexOf(Node elem,
int index)
elem - Node to look forindex - Index of where to start the searchpublic int indexOf(Node elem)
elem - Node to look for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||