Path

laika.ast.Path$
See thePath companion trait
object Path

Factory methods for creating path instances.

Attributes

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

Members list

Type members

Classlikes

case object Root extends Path

The root of an absolute path.

The root of an absolute path.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Path
trait VirtualPath
trait Serializable
trait Product
trait Equals
trait GenericPath
class Object
trait Matchable
class Any
Show all
Self type
Root.type

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 apply(segments: List[String]): Path
def parse(str: String): Path

Creates an absolute path from interpreting the specified string representation.

Creates an absolute path from interpreting the specified string representation.

A slash prefix, even if not present, will be assumed.

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