Class PythonScriptFile


  • public abstract class PythonScriptFile
    extends java.lang.Object
    Converts a string of Python Code or a Python File into something the PythonScriptOperation can handle.
    • Constructor Detail

      • PythonScriptFile

        public PythonScriptFile()
    • Method Detail

      • create

        public static PythonScriptFile create​(java.net.URL url)
                                       throws java.io.IOException
        Parameters:
        url - The URL to get the script file from.
        Returns:
        The constructed PythonScript file.
        Throws:
        java.io.IOException - If the URL fails to open.
      • create

        public static PythonScriptFile create​(java.lang.String code)
        Parameters:
        code - The code to create the file from.
        Returns:
        The constructed PythonScript file.
      • name

        public abstract java.lang.String name()
      • summary

        public abstract java.lang.String summary()
      • inputSocketHints

        public abstract java.util.List<SocketHint<org.python.core.PyObject>> inputSocketHints()
      • outputSocketHints

        public abstract java.util.List<SocketHint<org.python.core.PyObject>> outputSocketHints()
      • performFunction

        public abstract org.python.core.PyFunction performFunction()