org.apache.xml.utils
public class IntStack extends IntVector
UNKNOWN: internal
Constructor Summary | |
---|---|
IntStack()
Default constructor. | |
IntStack(int blocksize)
Construct a IntVector, using the given block size.
| |
IntStack(IntStack v)
Copy constructor for IntStack
|
Method Summary | |
---|---|
Object | clone()
Returns clone of current IntStack
|
boolean | empty()
Tests if this stack is empty.
|
int | peek()
Looks at the object at the top of this stack without removing it
from the stack.
|
int | peek(int n)
Looks at the object at the position the stack counting down n items.
|
int | pop()
Removes the object at the top of this stack and returns that
object as the value of this function.
|
int | push(int i)
Pushes an item onto the top of this stack.
|
void | quickPop(int n)
Quickly pops a number of items from the stack. |
int | search(int o)
Returns where an object is on this stack.
|
void | setTop(int val)
Sets an object at a the top of the statck
|
Parameters: blocksize Size of block to allocate
Parameters: v IntStack to copy
Returns: clone of current IntStack
Returns: true
if this stack is empty;
false
otherwise.
Since: JDK1.0
Returns: the object at the top of this stack.
Throws: EmptyStackException if this stack is empty.
Parameters: n The number of items down, indexed from zero.
Returns: the object at n items down.
Throws: EmptyStackException if this stack is empty.
Returns: The object at the top of this stack.
Parameters: i the int to be pushed onto this stack.
Returns: the item
argument.
Parameters: o the desired object.
Returns: the distance from the top of the stack where the object is]
located; the return value -1
indicates that the
object is not on the stack.
Since: JDK1.0
Parameters: val object to set at the top
Throws: EmptyStackException if this stack is empty.