TreeCursor

case class TreeCursor(target: DocumentTree, parent: Option[TreeCursor], root: RootCursor, config: Config, position: TreePosition) extends Cursor

Cursor for an entire document tree, providing access to all child cursors of this tree and allowing to trigger rewrite operations.

Value parameters:
config

the configuration associated with this tree

parent

the immediate parent of this tree or None if this is the root

position

the position of this tree within the document tree

root

the root of this tree

target

the document tree this cursor points to

Companion:
object
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

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

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

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

All documents contained in this tree, fetched recursively, depth-first. This method behaves differently than the children method which only returns the cursors on this level of the tree hierarchy.

All documents contained in this tree, fetched recursively, depth-first. This method behaves differently than the children method which only returns the cursors on this level of the tree hierarchy.

lazy val children: Seq[Cursor]

The cursors for all children of this node in the document tree.

The cursors for all children of this node in the document tree.

val path: Path
lazy val titleDocument: Option[DocumentCursor]

The cursor for the title document of this tree.

The cursor for the title document of this tree.