Class ScriptFunctionHelper

  • Direct Known Subclasses:
    PropertyChangeScript, ScriptAction, ScriptRunner

    public abstract class ScriptFunctionHelper
    extends java.lang.Object
    Helper to consolidate the logic of an extension-function style script that must be compiled the first time before it runs.
    • 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 void invoke​(org.python.core.PyObject... arguments)
      • getDescription

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

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