|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.xineo.xml.util.ElementNameStack
Defines a stack of element names.
| Constructor Summary | |
ElementNameStack()
Constructs an empty element stack. |
|
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
empty()
Tests if the stack is empty. |
ElementName |
peek()
Returns the element on top of the stack without removing it. |
ElementName |
peek(int offset)
Returns an element given by its depth in the stack starting from the top, without removing it. |
ElementName |
pop()
Removes the element name on top of the stack, and returns it. |
void |
push(ElementName elementName)
Adds an element name on top of the stack. |
int |
size()
Returns the count of elements contained in this stack. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ElementNameStack()
| Method Detail |
public void push(ElementName elementName)
elementName - The element name to be pushedpublic ElementName pop()
public boolean empty()
public int size()
public ElementName peek()
public ElementName peek(int offset)
offset - the offset of the given element starting from the top of the stack
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||