|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.PackageManager
Abstract package manager.
Field Summary | |
PyJavaPackage |
topLevelPackage
|
Constructor Summary | |
PackageManager()
|
Method Summary | |
abstract void |
addDirectory(java.io.File dir)
Append a directory to the list of directories searched for java packages and java classes. |
abstract void |
addJar(java.lang.String jarfile,
boolean cache)
Append a jar file to the list of locations searched for java packages and java classes. |
abstract void |
addJarDir(java.lang.String dir,
boolean cache)
Append a directory to the list of directories searched for java packages and java classes. |
abstract PyList |
doDir(PyJavaPackage jpkg,
boolean instantiate,
boolean exclpkgs)
Reports the specified package content names. |
java.lang.Class |
findClass(java.lang.String pkg,
java.lang.String name)
|
abstract java.lang.Class |
findClass(java.lang.String pkg,
java.lang.String name,
java.lang.String reason)
|
PyObject |
lookupName(java.lang.String name)
|
PyJavaPackage |
makeJavaPackage(java.lang.String name,
java.lang.String classes,
java.lang.String jarfile)
Creates package/updates statically known classes info. |
void |
notifyPackageImport(java.lang.String pkg,
java.lang.String name)
|
abstract boolean |
packageExists(java.lang.String pkg,
java.lang.String name)
Dynamically check if pkg.name exists as java pkg in the controlled hierarchy. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public PyJavaPackage topLevelPackage
Constructor Detail |
public PackageManager()
Method Detail |
public abstract java.lang.Class findClass(java.lang.String pkg, java.lang.String name, java.lang.String reason)
public java.lang.Class findClass(java.lang.String pkg, java.lang.String name)
public void notifyPackageImport(java.lang.String pkg, java.lang.String name)
public abstract boolean packageExists(java.lang.String pkg, java.lang.String name)
pkg
- parent pkg namename
- candidate name
public abstract PyList doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)
PyJavaPackage.__dir__()
and
PyJavaPackage.fillDir()
.
jpkg
- queried packageinstantiate
- if true then instatiate reported names in
package dictexclpkgs
- exclude packages (just when instantiate is false)
public abstract void addDirectory(java.io.File dir)
dir
- A directory.public abstract void addJarDir(java.lang.String dir, boolean cache)
dir
- A directory name.public abstract void addJar(java.lang.String jarfile, boolean cache)
jarfile
- A directory name.public PyObject lookupName(java.lang.String name)
public PyJavaPackage makeJavaPackage(java.lang.String name, java.lang.String classes, java.lang.String jarfile)
PyJavaPackage.addPackage(java.lang.String,
java.lang.String)
, PyJavaPackage.addPlaceholders(java.lang.String)
.
name
- package nameclasses
- comma-separated stringjarfile
- involved jarfile; can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |