Path API.
| Modifier and Type | Field and Description |
|---|---|
| private final Path | classpathEltPath
The directory at the root of the classpath element. |
| private final NestedJarHandler | nestedJarHandler
The nested jar handler. |
| private final Set | scannedCanonicalPaths
Used to ensure that recursive scanning doesn't get into an infinite loop due to a link cycle. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ClasspathElementDir(final Scanner.
the work unit -- workUnit.classpathEntryObj must be a workUnit,Path objectthe nested jar handler nestedJarHandler, final ScanSpec the scan spec scanSpec)A directory 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. Get the URI for this classpath element, and the URIs for any automatic nested package prefixes (e.g. "spring-boot.jar/BOOT-INF/classes") within this jarfile. |
| public File | Returns: The classpath element directory as aFile, or null if this classpath element is not backed by
a directory (should not happen).Implements abstract io. Get the directory |
| public String | Returns: the module nameImplements abstract io. Get the module name from module descriptor. |
| 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. |
| public int | |
| private Resource | Returns: the resourcethe resourcePath, final BasicFileAttributes attributes)Path for the resourceCreate 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. |
| private void | scanPathRecursively(final Path
the path, final LogNode Paththe log log)Recursively scan a |
| pack-priv void | scanPaths(final LogNode
the log log)Implements abstract io. Hierarchically scan directory structure for classfiles and matching files. |
| public String | Returns: the stringOverrides java. Return the classpath element directory as a String. |
| classpathEltPath | back to summary |
|---|---|
| private final Path classpathEltPath The directory at the root of the classpath element. | |
| nestedJarHandler | back to summary |
|---|---|
| private final NestedJarHandler nestedJarHandler The nested jar handler. | |
| scannedCanonicalPaths | back to summary |
|---|---|
| private final Set<Path> scannedCanonicalPaths Used to ensure that recursive scanning doesn't get into an infinite loop due to a link cycle. | |
| ClasspathElementDir | back to summary |
|---|---|
| pack-priv ClasspathElementDir(final Scanner. A directory 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. Doc from io. Get the URI for this classpath element, and the URIs for any automatic nested package prefixes (e.g. "spring-boot.jar/BOOT-INF/classes") within this jarfile. | |
| getFile | back to summary |
|---|---|
| public File getFile() Implements abstract io. Get the directory | |
| getModuleName | back to summary |
|---|---|
| public String getModuleName() Implements abstract io. Get the module name from module descriptor. | |
| 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. | |
| 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 Path resourcePath, final BasicFileAttributes attributes) 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
| |
| scanPathRecursively | back to summary |
|---|---|
| private void scanPathRecursively(final Path path, final LogNode log) Recursively scan a | |
| scanPaths | back to summary |
|---|---|
| pack-priv void scanPaths(final LogNode log) Implements abstract io. Hierarchically scan directory structure for classfiles and matching files. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the classpath element directory as a String. | |