RootCursor

laika.ast.RootCursor
See theRootCursor companion object
class RootCursor

Cursor for the root node of a document tree, providing access to all child cursors of this tree and allowing to trigger rewrite operations.

Value parameters

target

the root of the document tree this cursor points to

Attributes

Companion
object
Source
Cursor.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

Attributes

Source
Cursor.scala

Value members

Concrete methods

Returns a new tree root, with all the document models contained in it rewritten based on the specified rewrite rule.

Returns a new tree root, with all the document models contained in it rewritten based on the specified rewrite rule.

Attributes

Source
Cursor.scala

Selects the tree configuration for the specified path, or its nearest parent if that path does not have a configuration assigned.

Selects the tree configuration for the specified path, or its nearest parent if that path does not have a configuration assigned. Always succeeds as recursing upwards will eventually lead to this root cursor and return its configuration.

Attributes

Source
Cursor.scala

Concrete fields

lazy val allDocuments: Seq[DocumentCursor]

All documents contained in this tree, fetched recursively, depth-first.

All documents contained in this tree, fetched recursively, depth-first.

Attributes

Source
Cursor.scala
val config: Config

Attributes

Source
Cursor.scala
lazy val coverDocument: Option[DocumentCursor]

The cursor for the cover document of this tree.

The cursor for the cover document of this tree.

Attributes

Source
Cursor.scala

The context for the output format when the cursor has been created for the final rewrite phase for a specific output format or empty in earlier rewrite phases that apply to all formats.

The context for the output format when the cursor has been created for the final rewrite phase for a specific output format or empty in earlier rewrite phases that apply to all formats.

Attributes

Source
Cursor.scala
lazy val pathTranslator: Option[PathTranslator]

The path translator to be used for translating internal links and output paths.

The path translator to be used for translating internal links and output paths.

The translator is specific for each output format and therefore this value is empty for any cursor that has not been created for the final rewrite phase in the context of a concrete renderer and its template.

Attributes

Source
Cursor.scala

Attributes

Source
Cursor.scala

The cursor for the underlying tree structure of this root node.

The cursor for the underlying tree structure of this root node.

Attributes

Source
Cursor.scala