Implements a stack of Variant values.
Description
The CalculationStack class allows you to implement a stack of Variant values.
Instance methods
length
Length
public
int length()
- returns: int - length
pop
Removes and returns the last value from the list.
public
Variant pop()
- returns: Variant - the last value from the list.
peekAt
Peeks a Variant value located at a specified index.
public
Variant peekAt(int index)
- index: int - a specified index.
- returns: Variant - a Variant value.
peek
Peeks a Variant value.
public
Variant peek()
- returns: Variant - a Variant value.
push
Pushes a Variant value.
public
void push(Variant value)
- returns: Variant - a Variant value.