Class NullableFunction

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

public class NullableFunction extends BaseRealizableFunction
  • Nested Class Summary

    Nested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction

    nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.function.ArgumentList
     

    Fields inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction

    arguments, beta, returnType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    This method is internal to the sub-class.

    Methods inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction

    asFunction, beta, buildFunction, builtin, getArguments, getReturnType, identified, realize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.rl.RealizableFunction

    isDoTypeAdaptation
  • Field Details

    • ARGUMENTS

      public static final nz.org.riskscape.engine.function.ArgumentList ARGUMENTS
  • Constructor Details

    • NullableFunction

      public NullableFunction()
  • 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