Class FormulaParameter

    • Constructor Detail

      • FormulaParameter

        public FormulaParameter​(String name,
                                String formula)
    • Method Detail

      • getName

        public String getName()
      • getFormula

        public String getFormula()
      • convert

        public static FormulaParameter[] convert​(org.pentaho.reporting.engine.classic.core.ParameterMapping[] definedVariableNames)
        Maps the legacy parameter mapping into the new formula based system. ParameterMapping#getName returns the report's datarow-column name (source) and ParameterMapping#getAlias returns the target parameter in the transformation.
        Parameters:
        definedVariableNames -
        Returns:
      • convert

        public static org.pentaho.reporting.engine.classic.core.ParameterMapping[] convert​(FormulaParameter[] args)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getReferencedFields

        public String[] getReferencedFields()
                                     throws org.pentaho.reporting.libraries.formula.parser.ParseException
        Throws:
        org.pentaho.reporting.libraries.formula.parser.ParseException
      • compute

        public Object compute​(org.pentaho.reporting.libraries.formula.FormulaContext formulaContext)
                       throws org.pentaho.reporting.libraries.formula.EvaluationException,
                              org.pentaho.reporting.libraries.formula.parser.ParseException
        Throws:
        org.pentaho.reporting.libraries.formula.EvaluationException
        org.pentaho.reporting.libraries.formula.parser.ParseException