Class ClasspathPyImporter

    • Field Detail

      • PYCLASSPATH_PREFIX

        public static final java.lang.String PYCLASSPATH_PREFIX
        See Also:
        Constant Field Values
      • TYPE

        public static final PyType TYPE
    • Constructor Detail

      • ClasspathPyImporter

        public ClasspathPyImporter​(PyType subType)
      • ClasspathPyImporter

        public ClasspathPyImporter()
    • Method Detail

      • get_data

        public java.lang.String get_data​(java.lang.String path)
        Return the contents of the jarred file at the specified path as bytes.
        Specified by:
        get_data in class importer<java.lang.String>
        Parameters:
        path - a String path name within the archive
        Returns:
        a String of data in binary mode (no CRLF)
      • get_source

        public java.lang.String get_source​(java.lang.String fullname)
        Return the source code for the module as a string (using newline characters for line endings)
        Parameters:
        fullname - the fully qualified name of the module
        Returns:
        a String of the module's source code or null