Class IntStack
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.IntStack
-
public final class IntStack extends Object
A simple integer based stack. moved to org.smooks.engine.delivery.sax.ng.org.apache.xerces.util by neilg to support the XPathMatcher.- Version:
- $Id$
- Author:
- Andy Clark, IBM
-
-
Constructor Summary
Constructors Constructor Description IntStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the stack.intelementAt(int depth)Returns the element at the specified depth in the stack.intpeek()Peeks at the top of the stack.intpop()Pops a value off of the stack.voidprint()Prints the stack.voidpush(int value)Pushes a value onto the stack.intsize()Returns the size of the stack.
-
-
-
Method Detail
-
size
public int size()
Returns the size of the stack.
-
push
public void push(int value)
Pushes a value onto the stack.
-
peek
public int peek()
Peeks at the top of the stack.
-
elementAt
public int elementAt(int depth)
Returns the element at the specified depth in the stack.
-
pop
public int pop()
Pops a value off of the stack.
-
clear
public void clear()
Clears the stack.
-
print
public void print()
Prints the stack.
-
-