Class ExpressionText

java.lang.Object
nz.org.riskscape.engine.function.BaseRealizableFunction
nz.org.riskscape.engine.function.lang.ExpressionText
All Implemented Interfaces:
nz.org.riskscape.engine.rl.RealizableFunction

public class ExpressionText extends BaseRealizableFunction

Helper function to return an expression as text, with any $param values expanded. (The function name is based off the spreadsheet FORMULA_TEXT() function, which is the closest similar concept I could find).

  • Constructor Details

    • ExpressionText

      public ExpressionText()
  • Method Details

    • build

      protected nz.org.riskscape.engine.function.RiskscapeFunction build(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> givenTypes) throws nz.org.riskscape.problem.ProblemException
      Description copied from class: BaseRealizableFunction

      This method is internal to the sub-class. Simple realizable functions can just implement this, to jump straight to the meat of building the realized function. You should throw a ProblemException for any errors encountered.

      Overrides:
      build in class BaseRealizableFunction
      Throws:
      nz.org.riskscape.problem.ProblemException