| Modifier and Type | Field and Description |
|---|---|
| private String | derivedAutomaticModuleName
The automatic module name, derived from the jarfile filename. |
| pack-priv LogicalZipFile | logicalZipFile
The logical zipfile for this classpath element. |
| pack-priv String | moduleNameFromManifestFile
The name of the module from the |
| private final NestedJarHandler | nestedJarHandler
The nested jar handler. |
| private final String | |
| private final ConcurrentHashMap | relativePathToResource
A map from relative path to |
| private final Set | strippedAutomaticPackageRootPrefixes
A list of all automatic package root prefixes found as prefixes of paths within this zipfile. |
| private String | zipFilePath
The normalized path of the jarfile, "!/"-separated if nested, excluding any package root. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ClasspathElementZip(final Scanner.
the work unit workUnit,the nested jar handler nestedJarHandler, final ScanSpec the scan spec scanSpec)A jarfile classpath element. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv List | getAllURIs()
Implements abstract io. Return URI for classpath element, plus URIs for any stripped nested automatic package root prefixes, e.g. "!/BOOT-INF/classes". |
| pack-priv File | getFile()
Implements abstract io. Get the |
| public String | Returns: the module nameImplements abstract io. Get module name from module descriptor, or get the automatic module name from the manifest file, or derive an automatic module name from the jar name. |
| pack-priv Resource | Returns: TheResource for the given relative path, or null if relativePath does not exist in this
classpath element.The relative path of the relativePath)Resource to return.Implements abstract io. Get the |
| pack-priv URI | getURI()
Implements abstract io. Get the URI for this classpath element. |
| pack-priv String | |
| public int | |
| private Resource | Returns: the resourcethe zip entry zipEntry, final String the path relative to package root pathRelativeToPackageRoot)Create a new |
| pack-priv void | open(final WorkQueue<Scanner.
the work queue workQueue,the log log)Implements abstract io. Determine if this classpath element is valid. |
| pack-priv void | scanPaths(final LogNode
the log log)Implements abstract io. Scan for path matches within jarfile, and record ZipEntry objects of matching files. |
| public String | Returns: the stringOverrides java. Return the classpath element path. |
| derivedAutomaticModuleName | back to summary |
|---|---|
| private String derivedAutomaticModuleName The automatic module name, derived from the jarfile filename. | |
| logicalZipFile | back to summary |
|---|---|
| pack-priv LogicalZipFile logicalZipFile The logical zipfile for this classpath element. | |
| moduleNameFromManifestFile | back to summary |
|---|---|
| pack-priv String moduleNameFromManifestFile The name of the module from the | |
| nestedJarHandler | back to summary |
|---|---|
| private final NestedJarHandler nestedJarHandler The nested jar handler. | |
| rawPath | back to summary |
|---|---|
| private final String rawPath The | |
| relativePathToResource | back to summary |
|---|---|
| private final ConcurrentHashMap<String, Resource> relativePathToResource A map from relative path to | |
| strippedAutomaticPackageRootPrefixes | back to summary |
|---|---|
| private final Set<String> strippedAutomaticPackageRootPrefixes A list of all automatic package root prefixes found as prefixes of paths within this zipfile. | |
| zipFilePath | back to summary |
|---|---|
| private String zipFilePath The normalized path of the jarfile, "!/"-separated if nested, excluding any package root. | |
| ClasspathElementZip | back to summary |
|---|---|
| pack-priv ClasspathElementZip(final Scanner. A jarfile classpath element.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAllURIs | back to summary |
|---|---|
| pack-priv List Implements abstract io. Return URI for classpath element, plus URIs for any stripped nested automatic package root prefixes, e.g. "!/BOOT-INF/classes".
| |
| getFile | back to summary |
|---|---|
| pack-priv File getFile() Implements abstract io. Get the | |
| getModuleName | back to summary |
|---|---|
| public String getModuleName() Implements abstract io. Get module name from module descriptor, or get the automatic module name from the manifest file, or derive an automatic module name from the jar name. | |
| getResource | back to summary |
|---|---|
| pack-priv Resource getResource(final String relativePath) Implements abstract io. Get the | |
| getURI | back to summary |
|---|---|
| pack-priv URI getURI() Implements abstract io. Doc from io. Get the URI for this classpath element. | |
| getZipFilePath | back to summary |
|---|---|
| pack-priv String getZipFilePath() Get the zipfile path.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| newResource | back to summary |
|---|---|
| private Resource newResource(final FastZipEntry zipEntry, final String pathRelativeToPackageRoot) Create a new
| |
| open | back to summary |
|---|---|
| pack-priv void open(final WorkQueue<Scanner. Implements abstract io. Doc from io. Determine if this classpath element is valid. If it is not valid, sets skipClasspathElement. For
| |
| scanPaths | back to summary |
|---|---|
| pack-priv void scanPaths(final LogNode log) Implements abstract io. Scan for path matches within jarfile, and record ZipEntry objects of matching files. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the classpath element path. | |