public static class CalculatorExpr.Data
extends java.lang.Object
CalculatorExpr
itself in multithreading/multicore,
but any thread should have its own data. The data instance can be reused in the same thread for the next operation.
Invoke clean() before reusing.Modifier and Type | Field and Description |
---|---|
protected CalculatorExpr.Value |
accu
The top of stack is the accumulator for the current level of adequate operations,
for example all multiplications without stack changing.
|
protected java.util.Stack<CalculatorExpr.Value> |
stack
The stack of values used temporary.
|
Constructor and Description |
---|
Data() |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
protected CalculatorExpr.Value accu
protected final java.util.Stack<CalculatorExpr.Value> stack