Satisfied Interfaces: Comparable<Path>

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
absoluteSource Code
shared formal Boolean absolute

Determine if this is an absolute path.

absolutePathSource 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.

elementPathsSource Code
shared formal Path[] elementPaths

The path elements of this path, as paths consisting of a single path element.

elementsSource Code
shared formal String[] elements

The path elements of this path, as strings.

normalizedPathSource Code
shared formal Path normalizedPath

This path, simplified to a canonical form.

parentSource Code
shared formal Path parent

This path, after removing the last path element.

resourceSource Code
shared formal Resource resource

Obtain a Resource representing the file or directory located at this path.

separatorSource Code
shared formal String separator

The separator character used by this path.

stringSource Code
shared formal String string

This path, expressed as a string.

Refined declaration: string
systemSource Code
shared formal System system

The System this is a path in.

uriStringSource Code
shared formal String uriString

This path, represented as a URI string.

Inherited Attributes
Attributes inherited from: Object
hash
Methods
childOfSource Code
shared formal Boolean childOf(Path path)

Determine if this path is a child of the given path.

childPathSource Code
shared formal Path childPath(String|Path subpath)

This path, after appending the given path element.

parentOfSource Code
shared formal Boolean parentOf(Path path)

Determine if this path is a parent of the given path.

relativePathSource Code
shared formal Path relativePath(String|Path path)

This path, converted into a path relative to the given path.

siblingPathSource Code
shared formal Path siblingPath(String|Path subpath)

This path, after removing the last path element, and then appending the given path element.

visitSource Code
shared formal void visit(Visitor visitor)

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