public class FormulaParameter extends Object implements Serializable
Constructor and Description |
---|
FormulaParameter(String name,
String formula) |
Modifier and Type | Method and Description |
---|---|
Object |
compute(org.pentaho.reporting.libraries.formula.FormulaContext formulaContext) |
static org.pentaho.reporting.engine.classic.core.ParameterMapping[] |
convert(FormulaParameter[] args) |
static FormulaParameter[] |
convert(org.pentaho.reporting.engine.classic.core.ParameterMapping[] definedVariableNames)
Maps the legacy parameter mapping into the new formula based system.
|
static FormulaParameter |
create(String reportFieldName,
String transformationParameterName) |
boolean |
equals(Object o) |
String |
getFormula() |
String |
getName() |
String[] |
getReferencedFields() |
int |
hashCode() |
public String getName()
public String getFormula()
public static FormulaParameter[] convert(org.pentaho.reporting.engine.classic.core.ParameterMapping[] definedVariableNames)
definedVariableNames
- public static FormulaParameter create(String reportFieldName, String transformationParameterName)
public static org.pentaho.reporting.engine.classic.core.ParameterMapping[] convert(FormulaParameter[] args)
public String[] getReferencedFields() throws org.pentaho.reporting.libraries.formula.parser.ParseException
org.pentaho.reporting.libraries.formula.parser.ParseException
public Object compute(org.pentaho.reporting.libraries.formula.FormulaContext formulaContext) throws org.pentaho.reporting.libraries.formula.EvaluationException, org.pentaho.reporting.libraries.formula.parser.ParseException
org.pentaho.reporting.libraries.formula.EvaluationException
org.pentaho.reporting.libraries.formula.parser.ParseException