org.apache.xerces.util
Class IntStack
java.lang.Object
org.apache.xerces.util.IntStack
public final class IntStack
extends java.lang.Object
A simple integer based stack.
moved to org.apache.xerces.util by neilg to support the
XPathMatcher.
$Id: IntStack.java,v 1.5 2004/02/24 23:15:53 mrglavas Exp $ void | clear() - Clears the stack.
|
int | elementAt(int depth) - Returns the element at the specified depth in the stack.
|
int | peek() - Peeks at the top of the stack.
|
int | pop() - Pops a value off of the stack.
|
void | print() - Prints the stack.
|
void | push(int value) - Pushes a value onto the stack.
|
int | size() - Returns the size of the stack.
|
clear
public void clear()
Clears the stack.
elementAt
public int elementAt(int depth)
Returns the element at the specified depth in the stack.
peek
public int peek()
Peeks at the top of the stack.
pop
public int pop()
Pops a value off of the stack.
print
public void print()
Prints the stack.
push
public void push(int value)
Pushes a value onto the stack.
size
public int size()
Returns the size of the stack.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.