public abstract class PathPackageManager extends CachedJarsPackageManager
searchPath, and statically from a set of jars,
like CachedJarsPackageManager.CachedJarsPackageManager.JarXEntry| Modifier and Type | Field and Description |
|---|---|
PyList |
searchPath |
topLevelPackage| Constructor and Description |
|---|
PathPackageManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassPath(String path)
Adds "classpath" entry.
|
void |
addDirectory(File dir)
Add directory dir (if exists) to
searchPath. |
PyList |
doDir(PyJavaPackage jpkg,
boolean instantiate,
boolean exclpkgs)
Reports the specified package content names.
|
boolean |
packageExists(String pkg,
String name)
Dynamically check if pkg.name exists as java pkg in the controlled
hierarchy.
|
addJarToPackages, addJarToPackages, addJarToPackages, addJarToPackages, saveCacheaddJar, addJarDir, findClass, findClass, lookupName, makeJavaPackage, notifyPackageImportpublic PyList searchPath
public void addDirectory(File dir)
searchPath.addDirectory in class PackageManagerdir - A directory.public void addClassPath(String path)
addDirectory(java.io.File) if path refers to a
dir, CachedJarsPackageManager.addJarToPackages(java.io.File, boolean) with param cache
true if path refers to a jar.public PyList doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)
PackageManagerPyJavaPackage.__dir__() and PyJavaPackage.fillDir().doDir in class PackageManagerjpkg - queried packageinstantiate - if true then instatiate reported names in package dictexclpkgs - exclude packages (just when instantiate is false)public boolean packageExists(String pkg, String name)
PackageManagerpackageExists in class PackageManagerpkg - parent pkg namename - candidate name