public class ExecutionContext
extends java.lang.Object
Constructor and Description |
---|
ExecutionContext(Operators operatorSet)
Creates a new execution context.
|
Modifier and Type | Method and Description |
---|---|
Operators |
getOperators()
Returns the operator set used by this execution context.
|
java.util.Stack<java.lang.Object> |
getStack()
Returns the stack used by this execution context.
|
int |
popInt()
Pops a value of type int from the stack.
|
java.lang.Number |
popNumber()
Pops a number (int or real) from the stack.
|
float |
popReal()
Pops a number from the stack and returns it as a real value.
|
public ExecutionContext(Operators operatorSet)
operatorSet
- the operator setpublic java.util.Stack<java.lang.Object> getStack()
public Operators getOperators()
public java.lang.Number popNumber()
public int popInt()
public float popReal()