| Modifier and Type | Class and Description |
|---|---|
| protected abstract static class | importer.
Bundle is an InputStream, bundled together with a method that can close the input stream and whatever resources are associated with it when the resource is imported. |
| pack-priv static enum | |
| protected class | importer.
Container for PyModule code - whether or not it's a package - and its path. |
| protected static enum | importer.
Module information |
| protected static class | importer.
A step in the module search order: the file suffix and its entry type. |
| Modifier and Type | Field and Description |
|---|---|
| protected static Logger | |
| pack-priv final importer. | searchOrder
SearchOrder defines how we search for a module. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| protected final importer | Returns: the module's ModuleCodeData objectthe fully qualified name of the module fullname)Return the code object and its associated data for the module with the fully qualified name. |
| protected final importer. | Returns: the module's informationthe fully qualified name of the module fullname)Return module information for the module with the fully qualified name. |
| protected abstract String | |
| protected abstract long | Returns: long mtime of the .py, or -1 if no source is availableto the compiled file path)Given a path to a compiled file in the archive, return the modification time of the matching .py file. |
| protected final PyObject | |
| protected final boolean | Returns: whether the module is a packagethe fully qualified name of the module fullname)
|
| protected final PyObject | |
| protected abstract importer. | makeBundle(String filenameAndSuffix, T entry)
Returns a Bundle for fullFilename and entry, the result from a makeEntry call for fullFilename. |
| protected abstract T | |
| protected abstract String | makeFilename(String fullname)
Given a full module name, return the potential file path in the archive (without extension). |
| protected abstract String | makeFilePath(String fullname)
Given a full module name, return the potential file path including the archive (without extension). |
| protected abstract String | makePackagePath(String fullname)
Returns the value to fill in __path__ on a module with the given full module name created by this importer. |
| private importer. |
| logger | back to summary |
|---|---|
| protected static Logger logger | |
| searchOrder | back to summary |
|---|---|
| pack-priv final importer. SearchOrder defines how we search for a module. | |
| importer | back to summary |
|---|---|
| public importer(PyType subType) | |
| importer | back to summary |
|---|---|
| public importer() | |
| get_data | back to summary |
|---|---|
| public abstract String get_data(String path) Return the bytes for the data located at | |
| getModuleCode | back to summary |
|---|---|
| protected final importer Return the code object and its associated data for the module with the fully qualified name.
| |
| getModuleInfo | back to summary |
|---|---|
| protected final importer. Return module information for the module with the fully qualified name.
| |
| getSeparator | back to summary |
|---|---|
| protected abstract String getSeparator() Returns the separator between directories and files used by this type of importer. | |
| getSourceMtime | back to summary |
|---|---|
| protected abstract long getSourceMtime(String path) Given a path to a compiled file in the archive, return the modification time of the matching .py file.
| |
| importer_find_module | back to summary |
|---|---|
| protected final PyObject importer_find_module(String fullname, String path) | |
| importer_is_package | back to summary |
|---|---|
protected final boolean importer_is_package(String fullname)
| |
| importer_load_module | back to summary |
|---|---|
| protected final PyObject importer_load_module(String fullname) | |
| makeBundle | back to summary |
|---|---|
| protected abstract importer. Returns a Bundle for fullFilename and entry, the result from a makeEntry call for fullFilename. | |
| makeEntry | back to summary |
|---|---|
| protected abstract T makeEntry(String filenameAndSuffix) 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 abstract String makeFilename(String fullname) Given a full module name, return the potential file path in the archive (without extension). | |
| makeFilePath | back to summary |
|---|---|
| protected abstract String makeFilePath(String fullname) Given a full module name, return the potential file path including the archive (without extension). | |
| makePackagePath | back to summary |
|---|---|
| protected abstract String makePackagePath(String fullname) Returns the value to fill in __path__ on a module with the given full module name created by this importer. | |
| makeSearchOrder | back to summary |
|---|---|
| private importer. | |
| Modifier and Type | Field and Description |
|---|---|
| public InputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void |
| inputStream | back to summary |
|---|---|
| public InputStream inputStream | |
| Bundle | back to summary |
|---|---|
| public Bundle(InputStream inputStream) | |
| close | back to summary |
|---|---|
| public abstract void close() Redeclares java. Close the underlying resource if necessary. Raises an IOError if a problem occurs.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final importer. | |
| public static final importer. | |
| public static final importer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static importer. | |
| public static importer. |
| IS_BYTECODE | back to summary |
|---|---|
| public static final importer. | |
| IS_PACKAGE | back to summary |
|---|---|
| public static final importer. | |
| IS_SOURCE | back to summary |
|---|---|
| public static final importer. | |
| EntryType | back to summary |
|---|---|
| private EntryType() | |
| valueOf | back to summary |
|---|---|
| public static importer. | |
| values | back to summary |
|---|---|
| public static importer. | |
| Access | Constructor and Description |
|---|---|
| public |
| code | back to summary |
|---|---|
| public PyCode code | |
| isPackage | back to summary |
|---|---|
| public boolean isPackage | |
| path | back to summary |
|---|---|
| public String path | |
| ModuleCodeData | back to summary |
|---|---|
| public ModuleCodeData(PyCode code, boolean isPackage, String path) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final importer. | |
| public static final importer. | |
| public static final importer. | |
| public static final importer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static importer. | |
| public static importer. |
| ERROR | back to summary |
|---|---|
| public static final importer. | |
| MODULE | back to summary |
|---|---|
| public static final importer. | |
| NOT_FOUND | back to summary |
|---|---|
| public static final importer. | |
| PACKAGE | back to summary |
|---|---|
| public static final importer. | |
| ModuleInfo | back to summary |
|---|---|
| private ModuleInfo() | |
| valueOf | back to summary |
|---|---|
| public static importer. | |
| values | back to summary |
|---|---|
| public static importer. | |
| Modifier and Type | Field and Description |
|---|---|
| public String | |
| public EnumSet |
| Access | Constructor and Description |
|---|---|
| public |
| suffix | back to summary |
|---|---|
| public String suffix | |
| type | back to summary |
|---|---|
| public EnumSet<importer. | |
| SearchOrderEntry | back to summary |
|---|---|
| public SearchOrderEntry(String suffix, EnumSet<importer. | |