org.python.core

Class JavaImporter

public class JavaImporter extends PyObject

Load Java classes.
Constructor Summary
JavaImporter()
Method Summary
PyObjectfind_module(String name)
Find the module for the fully qualified name.
PyObjectfind_module(String name, PyObject path)
Find the module for the fully qualified name.
PyObjectload_module(String name)
StringtoString()
Returns a string representation of the object.
PyObject__call__(PyObject[] args, String[] keywords)

Constructor Detail

JavaImporter

public JavaImporter()

Method Detail

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.

Returns: a string representation of the object.

__call__

public PyObject __call__(PyObject[] args, String[] keywords)
Jython homepage