Class JavaImporter

  • All Implemented Interfaces:
    java.io.Serializable

    public class JavaImporter
    extends PyObject
    Load Java classes.
    See Also:
    Serialized Form
    • Field Detail

      • JAVA_IMPORT_PATH_ENTRY

        public static final java.lang.String JAVA_IMPORT_PATH_ENTRY
        See Also:
        Constant Field Values
    • Constructor Detail

      • JavaImporter

        public JavaImporter()
    • Method Detail

      • __call__

        public PyObject __call__​(PyObject[] args,
                                 java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String name)
      • toString

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