Class ScriptFunctionHelper

    • Field Detail

      • signature

        protected final java.lang.String signature
    • Constructor Detail

      • ScriptFunctionHelper

        protected ScriptFunctionHelper​(java.lang.String signature,
                                       java.lang.String userCode)
        Parameters:
        signature - The signature, which is the method name and arguments like "runMe(arg1, arg2)"
        userCode - The user's portion of the runnable code
    • Method Detail

      • invoke

        public java.util.Optional<org.python.core.PyObject> invoke​(org.python.core.PyObject... arguments)
        Returns:
        the return value, if the method was invoked successfully, or empty if a problem was found.
      • getDescription

        protected java.lang.String getDescription()
        Describe the location/context of this script. Used for error messages
      • logWarn

        protected void logWarn​(java.lang.String message,
                               java.lang.Throwable error)
      • py2qualified

        public static QualifiedValue py2qualified​(org.python.core.PyObject object)