|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.tools.GenericStack
public class GenericStack
A generic auto-resizeable stack that can store primitive type and objects used by the parser evaluator generated by Tatoo Tools.
Constructor Summary | |
---|---|
GenericStack(int capacity)
Creates a stack with a specific capacity. |
Method Summary | |
---|---|
boolean |
pop_boolean()
Pop a boolean from the stack. |
byte |
pop_byte()
Pop a byte from the stack. |
char |
pop_char()
Pop a character from the stack. |
double |
pop_double()
Pop a double from the stack. |
float |
pop_float()
Pop a float from the stack. |
int |
pop_int()
Pop an integer from the stack. |
long |
pop_long()
Pop a long from the stack. |
Object |
pop_Object()
Pop an object from the stack. |
short |
pop_short()
Pop a short from the stack. |
void |
push_boolean(boolean value)
Push a boolean on the stack. |
void |
push_byte(byte value)
Push a byte on the stack. |
void |
push_char(char value)
Push a character on the stack. |
void |
push_double(double value)
Push a double on the stack. |
void |
push_float(float value)
Push a float on the stack. |
void |
push_int(int value)
Push an integer on the stack. |
void |
push_long(long value)
Push a long on the stack. |
void |
push_Object(Object value)
Push an object on the stack. |
void |
push_short(short value)
Push a short on the stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericStack(int capacity)
capacity
- the initial capacity of the stack before a resize.Method Detail |
---|
public void push_Object(Object value)
value
- an object.public Object pop_Object()
public void push_int(int value)
value
- an integer.public int pop_int()
public void push_float(float value)
value
- a float.public float pop_float()
public void push_char(char value)
value
- a character.public char pop_char()
public void push_short(short value)
value
- a short.public short pop_short()
public void push_byte(byte value)
value
- a byte.public byte pop_byte()
public void push_boolean(boolean value)
value
- a boolean.public boolean pop_boolean()
public void push_long(long value)
value
- a long.public long pop_long()
public void push_double(double value)
value
- a double.public double pop_double()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |