Class JavaImporter

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

public class JavaImporter extends PyObject
Load Java classes.
See Also:
  • Field Details

  • Constructor Details

    • JavaImporter

      public JavaImporter()
  • Method Details

    • __call__

      public PyObject __call__(PyObject[] args, String[] keywords)
      Description copied from class: PyObject
      The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.
      Overrides:
      __call__ in class PyObject
      Parameters:
      args - all arguments to the function (including keyword arguments).
      keywords - the keywords used for all keyword arguments.
    • 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
    • load_module

      public PyObject load_module(String name)
    • toString

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