| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private String | |
| public static final String | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| pack-priv final PyObject | Returns: a loader instance if this importer can load the module, None otherwisethe fully qualified name of the module fullname, String if not installed on the meta-path None or a module path path)Find the module for the fully qualified name. |
| pack-priv final PyObject | Returns: the module's PyCode object or Nonethe fully qualified name of the module fullname)Return the code object associated with the module. |
| pack-priv final String | |
| pack-priv final String | |
| pack-priv final boolean | Returns: whether the module is a packagethe fully qualified name of the module fullname)Determine whether a module is a package. |
| pack-priv final PyObject | Returns: a loaded PyModulethe fully qualified name of the module fullname)Load a module for the fully qualified name. |
| public String | Returns: a String of data in binary mode (no CRLF)a String path name within the archive path)Implements abstract org. Return the contents of the jarred file at the specified path as bytes. |
| public String | Returns: a String of the module's source code or nullthe fully qualified name of the module fullname)Return the source code for the module as a string (using newline characters for line endings) |
| protected String | getSeparator()
Implements abstract org. Returns the separator between directories and files used by this type of importer. |
| protected long | getSourceMtime(String
to the compiled file path)Implements abstract org. Given a path to a compiled file in the archive, return the modification time of the matching .py file. |
| protected importer. | makeBundle(String fullFilename, String entry)
Implements abstract org. Returns a Bundle for fullFilename and entry, the result from a makeEntry call for fullFilename. |
| protected String | makeEntry(String filename)
Implements abstract org. Returns an entry for a filename from makeFilename with a potential suffix such that this importer can make a bundle with it, or null if fullFilename doesn't exist in this importer. |
| protected String | makeFilename(String fullname)
Implements abstract org. Given a full module name, return the potential file path in the archive (without extension). |
| protected String | makeFilePath(String fullname)
Implements abstract org. Given a full module name, return the potential file path including the archive (without extension). |
| protected String | makePackagePath(String fullname)
Implements abstract org. Returns the value to fill in __path__ on a module with the given full module name created by this importer. |
| private InputStream |
| entries | back to summary |
|---|---|
| private Map<String, InputStream> entries | |
| path | back to summary |
|---|---|
| private String path | |
| PYCLASSPATH_PREFIX | back to summary |
|---|---|
| public static final String PYCLASSPATH_PREFIX | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| ClasspathPyImporter | back to summary |
|---|---|
| public ClasspathPyImporter(PyType subType) | |
| ClasspathPyImporter | back to summary |
|---|---|
| public ClasspathPyImporter() | |
| ClasspathPyImporter___init__ | back to summary |
|---|---|
pack-priv final void ClasspathPyImporter___init__(PyObject[] args, String[] kwds)
| |
| ClasspathPyImporter_find_module | back to summary |
|---|---|
| pack-priv final PyObject ClasspathPyImporter_find_module(String fullname, String path) Find the module for the fully qualified name.
a loader instance if this importer can load the module, None otherwise
| |
| ClasspathPyImporter_get_code | back to summary |
|---|---|
| pack-priv final PyObject ClasspathPyImporter_get_code(String fullname) Return the code object associated with the module. | |
| ClasspathPyImporter_get_data | back to summary |
|---|---|
pack-priv final String ClasspathPyImporter_get_data(String path)
| |
| ClasspathPyImporter_get_source | back to summary |
|---|---|
pack-priv final String ClasspathPyImporter_get_source(String fullname)
| |
| ClasspathPyImporter_is_package | back to summary |
|---|---|
| pack-priv final boolean ClasspathPyImporter_is_package(String fullname) Determine whether a module is a package.
| |
| ClasspathPyImporter_load_module | back to summary |
|---|---|
| pack-priv final PyObject ClasspathPyImporter_load_module(String fullname) Load a module for the fully qualified name. | |
| get_data | back to summary |
|---|---|
| public String get_data(String path) Implements abstract org. Return the contents of the jarred file at the specified path as bytes. | |
| get_source | back to summary |
|---|---|
| public String get_source(String fullname) Return the source code for the module as a string (using newline characters for line endings) | |
| getSeparator | back to summary |
|---|---|
| protected String getSeparator() Implements abstract org. Doc from org. Returns the separator between directories and files used by this type of importer.
| |
| getSourceMtime | back to summary |
|---|---|
| protected long getSourceMtime(String path) Implements abstract org. Doc from org. Given a path to a compiled file in the archive, return the modification time of the matching .py file. | |
| makeBundle | back to summary |
|---|---|
| protected importer. Implements abstract org. Doc from org. Returns a Bundle for fullFilename and entry, the result from a makeEntry call for fullFilename.
| |
| makeEntry | back to summary |
|---|---|
| protected String makeEntry(String filename) Implements abstract org. Doc from org. Returns an entry for a filename from makeFilename with a potential suffix such that this importer can make a bundle with it, or null if fullFilename doesn't exist in this importer.
| |
| makeFilename | back to summary |
|---|---|
| protected String makeFilename(String fullname) Implements abstract org. Doc from org. Given a full module name, return the potential file path in the archive (without extension).
| |
| makeFilePath | back to summary |
|---|---|
| protected String makeFilePath(String fullname) Implements abstract org. Doc from org. Given a full module name, return the potential file path including the archive (without extension).
| |
| makePackagePath | back to summary |
|---|---|
| protected String makePackagePath(String fullname) Implements abstract org. Doc from org. Returns the value to fill in __path__ on a module with the given full module name created by this importer.
| |
| tryClassLoader | back to summary |
|---|---|
| private InputStream tryClassLoader(String fullFilename, ClassLoader loader, String place) | |