Class PathPackageManager

    • Field Detail

      • searchPath

        public PyList searchPath
    • Constructor Detail

      • PathPackageManager

        public PathPackageManager()
    • Method Detail

      • addDirectory

        public void addDirectory​(java.io.File dir)
        Add directory dir (if exists) to searchPath.
        Specified by:
        addDirectory in class PackageManager
        Parameters:
        dir - A directory.
      • doDir

        public PyList doDir​(PyJavaPackage jpkg,
                            boolean instantiate,
                            boolean exclpkgs)
        Description copied from class: PackageManager
        Reports the specified package content names. Should be overriden. Used by PyJavaPackage.__dir__() and PyJavaPackage.fillDir().
        Specified by:
        doDir in class PackageManager
        Parameters:
        jpkg - queried package
        instantiate - if true then instatiate reported names in package dict
        exclpkgs - exclude packages (just when instantiate is false)
        Returns:
        resulting list of names (PyList of PyString)
      • packageExists

        public boolean packageExists​(java.lang.String pkg,
                                     java.lang.String name)
        Description copied from class: PackageManager
        Dynamically check if pkg.name exists as java pkg in the controlled hierarchy. Should be overriden.
        Specified by:
        packageExists in class PackageManager
        Parameters:
        pkg - parent pkg name
        name - candidate name
        Returns:
        true if pkg exists