| Modifier and Type | Field and Description |
|---|---|
| private final Operators | |
| private final Stack |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Operators | |
| public Stack | |
| public int | |
| public Number | |
| public float |
| operators | back to summary |
|---|---|
| private final Operators operators | |
| stack | back to summary |
|---|---|
| private final Stack<Object> stack | |
| ExecutionContext | back to summary |
|---|---|
| public ExecutionContext(Operators operatorSet) Creates a new execution context.
| |
| getOperators | back to summary |
|---|---|
| public Operators getOperators() Returns the operator set used by this execution context.
| |
| getStack | back to summary |
|---|---|
| public Stack Returns the stack used by this execution context. | |
| popInt | back to summary |
|---|---|
| public int popInt() Pops a value of type int from the stack. If the value is not of type int, a ClassCastException is thrown.
| |
| popNumber | back to summary |
|---|---|
| public Number popNumber() Pops a number (int or real) from the stack. If it's neither data type, a ClassCastException is thrown.
| |
| popReal | back to summary |
|---|---|
| public float popReal() Pops a number from the stack and returns it as a real value. If the value is not of a numeric type, a ClassCastException is thrown.
| |