org.apache.xml.serializer.utils
public final class BoolStack extends Object
UNKNOWN: internal
Constructor Summary | |
---|---|
BoolStack()
Default constructor. | |
BoolStack(int size)
Construct a IntVector, using the given block size.
|
Method Summary | |
---|---|
void | clear()
Clears the stack.
|
boolean | isEmpty()
Tests if this stack is empty.
|
boolean | peek()
Looks at the object at the top of this stack without removing it
from the stack.
|
boolean | peekOrFalse()
Looks at the object at the top of this stack without removing it
from the stack. |
boolean | peekOrTrue()
Looks at the object at the top of this stack without removing it
from the stack. |
boolean | pop()
Removes the object at the top of this stack and returns that
object as the value of this function.
|
boolean | popAndTop()
Removes the object at the top of this stack and returns the
next object at the top as the value of this function.
|
boolean | push(boolean val)
Pushes an item onto the top of this stack.
|
void | setTop(boolean b)
Set the item at the top of this stack
|
int | size()
Get the length of the list.
|
Parameters: size array size to allocate
Returns: true
if this stack is empty;
false
otherwise.
Returns: the object at the top of this stack.
Throws: EmptyStackException if this stack is empty.
Returns: the object at the top of this stack.
Returns: the object at the top of this stack.
Returns: The object at the top of this stack.
Throws: EmptyStackException if this stack is empty.
Returns: Next object to the top or false if none there
Parameters: val the boolean to be pushed onto this stack.
Returns: the item
argument.
Parameters: b Object to set at the top of this stack
Returns: Current length of the list