uka.util
Class IntStack

java.lang.Object
  extended byuka.util.IntStack
Direct Known Subclasses:
IntStack.Shadow

public class IntStack
extends java.lang.Object


Nested Class Summary
 class IntStack.Shadow
           
 
Field Summary
protected  int[] buffer
           
protected  int sp
           
 
Constructor Summary
IntStack()
           
 
Method Summary
 void clear()
           
 boolean empty()
           
private  void enlarge(int cnt)
           
 int get(int n)
           
 int getFrame(int pos)
           
 IntStack.Shadow getShadow()
           
 int pop()
           
 void pop(IntStack stack)
          Pops stack from this IntStack.
 void popFrame(int cnt)
           
 void push(int x)
           
 void push(int x, int y)
           
 void push(int x, int y, int z)
           
 void push(int x, int y, int z, int zz)
           
 void push(IntStack stack)
          Pushes stack on top of this IntStack.
 void pushFrame(int cnt)
           
 void setFrame(int pos, int x)
           
 int size()
           
 int top()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sp

protected int sp

buffer

protected int[] buffer
Constructor Detail

IntStack

public IntStack()
Method Detail

getShadow

public IntStack.Shadow getShadow()

top

public final int top()

pop

public final int pop()

get

public final int get(int n)

size

public final int size()

push

public void push(int x)

push

public void push(IntStack stack)
Pushes stack on top of this IntStack.


pop

public final void pop(IntStack stack)
Pops stack from this IntStack.


push

public void push(int x,
                 int y)

push

public void push(int x,
                 int y,
                 int z)

push

public void push(int x,
                 int y,
                 int z,
                 int zz)

pushFrame

public void pushFrame(int cnt)

popFrame

public final void popFrame(int cnt)

setFrame

public void setFrame(int pos,
                     int x)

getFrame

public final int getFrame(int pos)

empty

public final boolean empty()

clear

public final void clear()

enlarge

private final void enlarge(int cnt)

toString

public java.lang.String toString()