| java.lang.Object org.python.core.PackageManager
All known Subclasses: org.python.core.CachedJarsPackageManager,
PackageManager | abstract public class PackageManager extends Object (Code) | | Abstract package manager.
|
Method Summary | |
abstract public void | addDirectory(java.io.File dir) Append a directory to the list of directories searched for java packages
and java classes. | abstract public void | addJar(String jarfile, boolean cache) Append a jar file to the list of locations searched for java packages and
java classes. | abstract public void | addJarDir(String dir, boolean cache) Append a directory to the list of directories searched for java packages
and java classes. | protected PyList | basicDoDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs) Basic helper implementation of
PackageManager.doDir . | protected static int | checkAccess(java.io.InputStream cstream) Check that a given stream is a valid Java .class file. | abstract public PyList | doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs) Reports the specified package content names. | abstract public Class | findClass(String pkg, String name, String reason) | public Class | findClass(String pkg, String name) | public PyObject | lookupName(String name) | public PyJavaPackage | makeJavaPackage(String name, String classes, String jarfile) Creates package/updates statically known classes info. | protected PyList | merge(PyList list1, PyList list2) Helper merging list2 into list1. | public void | notifyPackageImport(String pkg, String name) | abstract public boolean | packageExists(String pkg, String name) Dynamically check if pkg.name exists as java pkg in the controlled
hierarchy. |
PackageManager | public PackageManager()(Code) | | |
addDirectory | abstract public void addDirectory(java.io.File dir)(Code) | | Append a directory to the list of directories searched for java packages
and java classes.
Parameters: dir - A directory. |
addJar | abstract public void addJar(String jarfile, boolean cache)(Code) | | Append a jar file to the list of locations searched for java packages and
java classes.
Parameters: jarfile - A directory name. |
addJarDir | abstract public void addJarDir(String dir, boolean cache)(Code) | | Append a directory to the list of directories searched for java packages
and java classes.
Parameters: dir - A directory name. |
doDir | abstract public PyList doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)(Code) | | Reports the specified package content names. Should be overriden. Used by
PyJavaPackage.__dir__ and
PyJavaPackage.fillDir .
resulting list of names (PyList of PyString) Parameters: jpkg - queried package Parameters: instantiate - if true then instatiate reported names in package dict Parameters: exclpkgs - exclude packages (just when instantiate is false) |
packageExists | abstract public boolean packageExists(String pkg, String name)(Code) | | Dynamically check if pkg.name exists as java pkg in the controlled
hierarchy. Should be overriden.
Parameters: pkg - parent pkg name Parameters: name - candidate name true if pkg exists |
|
|