Class FormulaInterpreter
java.lang.Object
com.kingsrook.qqq.backend.core.actions.reporting.FormulaInterpreter
Helper for Generating reports - to interpret formulas in report columns,
that are in "excel-style", ala: =MINUS(47,42) or
=IF(LT(ADD(${input.x},${input.y}),10,Yes,No)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Serializable
interpretFormula
(QMetaDataVariableInterpreter variableInterpreter, String formula) public method to interpret a formula.
-
Constructor Details
-
FormulaInterpreter
public FormulaInterpreter()
-
-
Method Details
-
interpretFormula
public static Serializable interpretFormula(QMetaDataVariableInterpreter variableInterpreter, String formula) throws QFormulaException public method to interpret a formula. Takes a variableInterpreter, optionally full of maps of variables, and the formula string, assumed to have its leading '=' char already trimmed away.- Throws:
QFormulaException
-