| Modifier and Type | Class and Description |
|---|---|
| private static class | PackageManager.
ASM visitor class supporting |
| Modifier and Type | Field and Description |
|---|---|
| public PyJavaPackage | topLevelPackage
Nominal top-level package of all (Java) packages, containing "java", "com", "org", etc.. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addDirectory(File
A directory. dir)Append a directory to the list of directories searched for java packages and java classes. |
| public abstract void | |
| public abstract void | |
| protected PyList | basicDoDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)
Basic helper implementation of |
| protected static int | checkAccess(InputStream cstream)
Check that a given stream is a valid Java .class file, and return its access permissions as an int. |
| public abstract PyList | Returns: resulting list of names (PyList of PyString)queried package jpkg, boolean if true then instatiate reported names in package dict instantiate, boolean exclude packages (just when instantiate is false) exclpkgs)Reports the specified package content names. |
| public abstract Class | |
| public Class | |
| public PyObject | Returns: the package named(dotted) package name name)Given the (dotted) name of a package, find the |
| public PyJavaPackage | Returns: created/updated packagepackage name name, String comma or @-sign separated string classes, String involved; can be null jarfile)Create (or ensure we have) a |
| protected PyList | |
| public void | |
| public abstract boolean | Returns: true if pkg existsparent pkg name pkg, String candidate name name)Dynamically check if pkg.name exists as java pkg in the controlled hierarchy. |
| protected static Set | |
| protected static Set |
| topLevelPackage | back to summary |
|---|---|
| public PyJavaPackage topLevelPackage Nominal top-level package of all (Java) packages, containing "java", "com", "org", etc.. | |
| PackageManager | back to summary |
|---|---|
| public PackageManager() | |
| addDirectory | back to summary |
|---|---|
| public abstract void addDirectory(File dir) Append a directory to the list of directories searched for java packages and java classes.
| |
| addJar | back to summary |
|---|---|
| public abstract void addJar(String jarfile, boolean cache) Append a jar file to the list of locations searched for java packages and java classes.
| |
| addJarDir | back to summary |
|---|---|
| public abstract void addJarDir(String dir, boolean cache) Append a directory to the list of directories searched for java packages and java classes.
| |
| basicDoDir | back to summary |
|---|---|
| protected PyList basicDoDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs) Basic helper implementation of | |
| checkAccess | back to summary |
|---|---|
| protected static int checkAccess(InputStream cstream) throws IOException Check that a given stream is a valid Java .class file, and return its access permissions as an int. | |
| doDir | back to summary |
|---|---|
| public abstract PyList doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs) Reports the specified package content names. Should be overridden. Used by
resulting list of names (PyList of PyString) | |
| findClass | back to summary |
|---|---|
| public abstract Class | |
| findClass | back to summary |
|---|---|
| public Class | |
| lookupName | back to summary |
|---|---|
| public PyObject lookupName(String name) Given the (dotted) name of a package, find the | |
| makeJavaPackage | back to summary |
|---|---|
| public PyJavaPackage makeJavaPackage(String name, String classes, String jarfile) Create (or ensure we have) a
created/updated package | |
| merge | back to summary |
|---|---|
| protected PyList merge(PyList list1, PyList list2) Helper merging list2 into list1. Returns list1. | |
| notifyPackageImport | back to summary |
|---|---|
| public void notifyPackageImport(String pkg, String name) | |
| packageExists | back to summary |
|---|---|
| public abstract boolean packageExists(String pkg, String name) Dynamically check if pkg.name exists as java pkg in the controlled hierarchy. Should be overridden. true if pkg exists | |
| split | back to summary |
|---|---|
| protected static Set Helper to split a textual list into a list. The semantics are basically those of
set of tokens trimmed of white space | |
| split | back to summary |
|---|---|
| protected static Set Equivalent to | |
checkAccess(InputStream).
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | visit(int
the class version. The minor version is stored in the 16 most significant bits,
and the major version in the 16 least significant bits. version, int the class's access flags (see access, String Opcodes). This parameter also indicates if
the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.the internal name of the class (see name, String Type#getInternalName()).the signature of this class. May be null if the class is not a
generic one, and does not extend or implement generic classes or interfaces. signature, String the internal of name of the super class (see superName, String[] Type#getInternalName()).
For interfaces, the super class is Object. May be null, but only for the
Object class.the internal names of the class's interfaces (see interfaces)Type#getInternalName()). May be null.Overrides org. Visits the header of the class. |
| class_access | back to summary |
|---|---|
| private int class_access | |
| AccessVisitor | back to summary |
|---|---|
| public AccessVisitor() throws IOException | |
| getClassAccess | back to summary |
|---|---|
| public int getClassAccess() | |
| visit | back to summary |
|---|---|
| public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) Overrides org. Doc from org. Visits the header of the class.
| |