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, saveCache
addJar, addJarDir, findClass, findClass, lookupName, makeJavaPackage, notifyPackageImport
public PyList searchPath
public void addDirectory(File dir)
searchPath
.addDirectory
in class PackageManager
dir
- 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)
PackageManager
PyJavaPackage.__dir__()
and PyJavaPackage.fillDir()
.doDir
in class PackageManager
jpkg
- 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)
PackageManager
packageExists
in class PackageManager
pkg
- parent pkg namename
- candidate name