Classes | |
class | StackItem |
class | StackIterator |
Public Member Functions | |
Stack () | |
boolean | empty () |
Iterator | iterator () |
Object | peek () throws java.util.EmptyStackException |
Object | pop () throws java.util.EmptyStackException |
void | push (Object object) |
int | search (Object object) |
int | size () |
A representation of a Stack that does not use Synchronization. For compatibility this class supports the same methods as a java.util.Stack (JDK)
org.exolab.castor.util.Stack.Stack | ( | ) |
Creates an empty Stack
boolean org.exolab.castor.util.Stack.empty | ( | ) |
Tests for an empty Stack
References org.exolab.castor.util.Stack.size().
Referenced by org.exolab.castor.xml.UnmarshalHandler.characters(), org.exolab.castor.xml.UnmarshalHandler.endElement(), org.exolab.castor.xml.util.SAX2ANY.endElement(), org.exolab.castor.xml.UnmarshalHandler.ignorableWhitespace(), org.exolab.castor.util.Stack.peek(), org.exolab.castor.util.Stack.pop(), and org.exolab.castor.xml.util.SAX2ANY.startElement().
Iterator org.exolab.castor.util.Stack.iterator | ( | ) |
Object org.exolab.castor.util.Stack.peek | ( | ) | throws java.util.EmptyStackException |
Returns the Object that is currently on top of the Stack. Unlike pop the Object is not removed from the Stack.
java.util.EmptyStackException | when there are no elements currently on the Stack |
References org.exolab.castor.util.Stack.empty().
Referenced by org.exolab.castor.xml.UnmarshalHandler.characters(), org.exolab.castor.xml.util.SAX2DOMHandler.characters(), org.exolab.castor.xml.UnmarshalHandler.endElement(), org.exolab.castor.xml.util.SAX2ANY.endElement(), org.exolab.castor.xml.UnmarshalHandler.getCurrentObject(), org.exolab.castor.xml.UnmarshalHandler.ignorableWhitespace(), and org.exolab.castor.xml.util.SAX2DOMHandler.startElement().
Object org.exolab.castor.util.Stack.pop | ( | ) | throws java.util.EmptyStackException |
Removes and returns the Object that is currently on top of the Stack.
java.util.EmptyStackException | when there are no elements currently on the Stack |
References org.exolab.castor.util.Stack.empty().
Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement(), org.exolab.castor.xml.util.SAX2DOMHandler.endElement(), org.exolab.castor.xml.util.SAX2ANY.endElement(), and org.exolab.castor.xml.util.SAX2ANY.startElement().
void org.exolab.castor.util.Stack.push | ( | Object | object | ) |
Adds the given Object to the top of the Stack
Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement(), org.exolab.castor.xml.util.SAX2DOMHandler.startElement(), org.exolab.castor.xml.util.SAX2ANY.startElement(), and org.exolab.castor.xml.util.SAX2ANY.startPrefixMapping().
int org.exolab.castor.util.Stack.search | ( | Object | object | ) |
int org.exolab.castor.util.Stack.size | ( | ) |
Returns the number of items on the Stack
Referenced by org.exolab.castor.util.Stack.empty().