|
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.IntVector | +--weblogic.apache.xml.utils.IntStack
Implement an array of simple integers.
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.
Fields inherited from class weblogic.apache.xml.utils.IntVector |
m_blocksize,
m_firstFree,
m_map,
m_mapSize |
Constructor Summary | |
IntStack()
Default constructor. |
|
IntStack(int blocksize)
Construct a IntVector, using the given block size. |
Method Summary | |
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 |
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 |
Methods inherited from class weblogic.apache.xml.utils.IntVector |
addElement,
contains,
elementAt,
indexOf,
indexOf,
insertElementAt,
lastIndexOf,
removeAllElements,
removeElement,
removeElementAt,
setElementAt,
size |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IntStack()
public IntStack(int blocksize)
blocksize
- Size of block to allocateMethod Detail |
public int push(int i)
i
- the int to be pushed onto this stack.item
argument.public int pop()
public void quickPop(int n)
public int peek()
public void setTop(int val)
val
- object to set at the toppublic boolean empty()
true
if this stack is empty;
false
otherwise.public int search(int o)
o
- the desired object.-1
indicates that the
object is not on the stack.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |