public class TypedStack
extends org.rigwit.stack.Stack
| Constructor and Description |
|---|
TypedStack(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
popAddr()
Pop an Address from the stack, returning an Integer.
|
boolean |
popBool()
Pop a value from the stack and return its boolean value.
|
int |
popChar()
Pop a Character from the stack, returning an Integer.
|
long |
popDouble()
Pop a Forth double (two Integers) off of the stack, returning
a Java long.
|
int |
popInt()
Pop an integer off the stack returning it as an Integer.
|
java.lang.Object |
popObj()
Pop a value from the stack returning it as a generic Object.
|
long |
popUInt()
Pop an unsigned integer from the stack returning it as a
positive Java long.
|
XT |
popXT()
Pop an eXecution Token from the stack, returning it as an XT
object.
|
void |
pushAddr(int item)
Push an integer onto the data stack as an Address.
|
void |
pushBool(boolean bool)
Push a java boolean value onto the stack as a Forth boolean
value.
|
void |
pushChar(int ch)
Push an integer onto the stack as a Character.
|
void |
pushDouble(java.lang.Long item)
Push a Java long into the stack as a Forth double, splitting
the value into the upper and lower cells.
|
void |
pushInt(int item)
Push an Integer onto the stack.
|
void |
pushObj(java.lang.Object item)
Push a generic Object onto the stack, irrespective of type.
|
void |
pushUInt(long uint)
Push a Java long onto the stack as an unsigned integer.
|
void |
pushXT(XT xt)
Push an eXecution Token onto the stack.
|
add, add, drop, duplicate, get, getMaxSize, peek, pop, push, remove, set, setMaxSize, swap, toStringaddAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, setElementAt, setSize, size, subList, toArray, toArray, trimToSizepublic void pushInt(int item)
item - Integer to be placed on the stack.public int popInt()
public void pushAddr(int item)
item - Address (integer) to be placed on the stack.public int popAddr()
public void pushChar(int ch)
ch - Character (integer) to be placed on the stack.public int popChar()
public void pushObj(java.lang.Object item)
item - the Java object to be placed on the stack.public java.lang.Object popObj()
public void pushBool(boolean bool)
bool - the Java boolean value to be placed on the stack.public boolean popBool()
public void pushUInt(long uint)
uint - the unsigned integer (long) to be placed on the
stack.public long popUInt()
public void pushDouble(java.lang.Long item)
item - the Java Long value to be placed onto the stack.public long popDouble()
public void pushXT(XT xt)
xt - the eXecution Token to be placed on the stack.public XT popXT()