RelativePath

laika.ast.RelativePath$
See theRelativePath companion trait

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

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

Represent the current document.

Represent the current document.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object CurrentTree extends RelativePath

Represent the current tree node.

Represent the current tree node.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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.

Attributes