public interface Operator extends Operation
| Modifier and Type | Method and Description |
|---|---|
Num |
calc(AbstractCalculator calc,
Num operandLeft,
Num operandRight)
Calculate value for implemented operator
|
int |
getPriority()
Define operator priority during calculation.
|
int getPriority()
SubOperator, AddOperator MulOperator, DivOperator, ModOperator PowOperator Num calc(AbstractCalculator calc, Num operandLeft, Num operandRight) throws java.lang.Exception
calc - operandLeft - operandRight - Numjava.lang.ExceptionJCalc API 2014 Davor Sauer - Apache 2.0