public class FunctionHandler extends Object
| Constructor and Description |
|---|
FunctionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static Ptg |
calculateFunction(Ptg[] ptgs) |
static Ptg |
calculatePtgFunc(Ptg funk,
int funkId,
Ptg[] operands) |
static Ptg |
calculatePtgFuncVar(Ptg funk,
int funkId,
Ptg[] operands)
Keep the calculation of ptgfunc & ptgfuncvar seperate in case any differences show up
|
static Ptg |
parse_n_calc(Ptg function,
int functionId,
Ptg[] operands)
*
Your standard big case statement, calling methods based on what the funkid is.
|
public static final Ptg calculateFunction(Ptg[] ptgs) throws FunctionNotSupportedException, CalculationException
public static final Ptg calculatePtgFunc(Ptg funk, int funkId, Ptg[] operands) throws FunctionNotSupportedException, CalculationException
public static final Ptg calculatePtgFuncVar(Ptg funk, int funkId, Ptg[] operands) throws FunctionNotSupportedException, CalculationException
public static final Ptg parse_n_calc(Ptg function, int functionId, Ptg[] operands) throws FunctionNotSupportedException, CalculationException
Copyright © 2002–2019 Starter Inc.. All rights reserved.