org.python.core
Class PathPackageManager
public abstract class PathPackageManager
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.
|
searchPath
public PyList searchPath
PathPackageManager
public PathPackageManager()
addClassPath
public void addClassPath(String path)
Adds "classpath" entry. Calls
addDirectory(File)
if path refers to a
dir,
addJarToPackages(java.io.File, boolean)
with param cache
true if path refers to a jar.
addDirectory
public void addDirectory(File dir)
doDir
public PyList doDir(PyJavaPackage jpkg,
boolean instantiate,
boolean exclpkgs)
- doDir in interface PackageManager
jpkg
- queried packageinstantiate
- if true then instatiate reported names in package dictexclpkgs
- exclude packages (just when instantiate is false)
- resulting list of names (PyList of PyString)
packageExists
public boolean packageExists(String pkg,
String name)
Dynamically check if pkg.name exists as java pkg in the controlled
hierarchy. Should be overriden.
- packageExists in interface PackageManager
pkg
- parent pkg namename
- candidate name
Jython homepage