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