Class PrecompiledImporter

java.lang.Object
org.python.core.PyObject
org.python.core.PrecompiledImporter
All Implemented Interfaces:
Serializable

public class PrecompiledImporter extends PyObject
An importer for classes pre-compiled with JythonC.
See Also:
  • Constructor Details

    • PrecompiledImporter

      public PrecompiledImporter()
  • Method Details

    • find_module

      public PyObject find_module(String name)
      Find the module for the fully qualified name.
      Parameters:
      name - the fully qualified name of the module
      Returns:
      a loader instance if this importer can load the module, None otherwise
    • find_module

      public PyObject find_module(String name, PyObject path)
      Find the module for the fully qualified name.
      Parameters:
      name - the fully qualified name of the module
      path - if installed on the meta-path None or a module path
      Returns:
      a loader instance if this importer can load the module, None otherwise
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class PyObject
      Returns:
      a string representation of the object.