RelativePath

laika.ast.RelativePath$
See theRelativePath companion trait
object RelativePath

Attributes

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

Members list

Type members

Classlikes

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

Represent the current document.

Represent the current document.

Attributes

Companion
object
Supertypes
trait RelativePath
trait VirtualPath
trait Serializable
trait Product
trait Equals
trait GenericPath
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
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

Supertypes
trait Singleton
trait Product
trait Mirror
trait RelativePath
trait VirtualPath
trait Serializable
trait Product
trait Equals
trait GenericPath
class Object
trait Matchable
class Any
Show all
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

Supertypes
trait RelativePath
trait VirtualPath
trait Serializable
trait Product
trait Equals
trait GenericPath
class Object
trait Matchable
class Any
Show all

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