|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.BoolStack
Simple stack for boolean values.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Constructor Summary | |
BoolStack()
Default constructor. |
|
BoolStack(int size)
Construct a IntVector, using the given block size. |
Method Summary | |
java.lang.Object |
clone()
|
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. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BoolStack()
public BoolStack(int size)
size
- array size to allocateMethod Detail |
public final int size()
public final boolean push(boolean val)
val
- the boolean to be pushed onto this stack.item
argument.public final boolean pop()
public final boolean popAndTop()
public final void setTop(boolean b)
b
- Object to set at the top of this stackpublic final boolean peek()
public final boolean peekOrFalse()
public final boolean peekOrTrue()
public boolean isEmpty()
true
if this stack is empty;
false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |