Class JythonRiskscapeFunctionDelegate

java.lang.Object
nz.org.riskscape.jython.JythonRiskscapeFunctionDelegate
All Implemented Interfaces:
Function<List<Object>,Object>, nz.org.riskscape.engine.function.JavaFunction.Delegate, JavaJythonHelpers

public class JythonRiskscapeFunctionDelegate extends Object implements nz.org.riskscape.engine.function.JavaFunction.Delegate, JavaJythonHelpers
  • Constructor Details

    • JythonRiskscapeFunctionDelegate

      public JythonRiskscapeFunctionDelegate(org.python.core.PyFunction function, String id, nz.org.riskscape.engine.types.Type returnType, nz.org.riskscape.engine.function.ArgumentList arguments)
  • Method Details

    • apply

      public Object apply(List<Object> args)
      Specified by:
      apply in interface Function<List<Object>,Object>
      Specified by:
      apply in interface nz.org.riskscape.engine.function.JavaFunction.Delegate
    • getReturnType

      public nz.org.riskscape.engine.types.Type getReturnType()
    • getArguments

      public nz.org.riskscape.engine.function.ArgumentList getArguments()
      Specified by:
      getArguments in interface nz.org.riskscape.engine.function.JavaFunction.Delegate