Represents a path in a hierarchical file system. A path is a sequence of path elements. A path may be an absolute path that begins at the root of the file system, or a relative path.
Attributes | |
absolute | Source Code shared formal Boolean absolute Determine if this is an absolute path. |
absolutePath | Source Code shared formal Path absolutePath This path, converted into an absolute path. If this path is already absolute, return this path. Otherwise, if this path is a relative path, resolve it against the file system's default directory. |
elementPaths | Source Code shared formal Path[] elementPaths The path elements of this path, as paths consisting of a single path element. |
elements | Source Code shared formal String[] elements The path elements of this path, as strings. |
normalizedPath | Source Code shared formal Path normalizedPath This path, simplified to a canonical form. |
parent | Source Code shared formal Path parent This path, after removing the last path element. |
resource | Source Code shared formal Resource resource Obtain a |
separator | Source Code shared formal String separator The separator character used by this path. |
string | Source Code shared formal String string This path, expressed as a string. Refined declaration: string |
system | Source Code shared formal System system The |
uriString | Source Code shared formal String uriString This path, represented as a URI string. |
Inherited Attributes |
Attributes inherited from: Object hash |
Methods | |
childOf | Source Code shared formal Boolean childOf(Path path) Determine if this path is a child of the given path. |
childPath | Source Code This path, after appending the given path element. |
parentOf | Source Code shared formal Boolean parentOf(Path path) Determine if this path is a parent of the given path. |
relativePath | Source Code This path, converted into a path relative to the given path. |
siblingPath | Source Code This path, after removing the last path element, and then appending the given path element. |
visit | Source Code Walk the tree of directories rooted at this path and visit files contained in this directory tree. |
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: Comparable<Other> compare |