RelativePath

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class CurrentDocument(fragment: Option[String]) extends RelativePath

Represent the current document.

Represent the current document.

Companion:
object
Companion:
class
case object CurrentTree extends RelativePath

Represent the current tree node.

Represent the current tree node.

case class Parent(parentLevels: Int) extends RelativePath

Represent a parent path that is the specified number of levels above the current path.

Represent a parent path that is the specified number of levels above the current path.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def parse(str: String): RelativePath

Creates a relative path from interpreting the specified string representation.

Creates a relative path from interpreting the specified string representation.

A slash prefix, if present, will be discarded. Paths starting with one or more ../ path prefixes will be interpreted as expected, pointing to parent trees.

If you need to parse a string that can potentially represent both, an absolute or a relative path, use the PathBase.parse method instead.

Empty path segments are allowed, but should usually be avoided for usability reasons.