Cursor

sealed trait Cursor

A cursor provides the necessary context during a rewrite operation. The stateless document tree cannot provide access to parent or sibling nodes in the tree, therefore a temporary cursor instance is created during a rewrite operation for this purpose.

class Object
trait Matchable
class Any

Type members

Types

The type of the target this cursor points to.

The type of the target this cursor points to.

Value members

Abstract methods

The configuration associated with this node.

The configuration associated with this node.

def path: Path

The full, absolute path of the target of this cursor in the (virtual) document tree

The full, absolute path of the target of this cursor in the (virtual) document tree

The position of this node within the document tree.

The position of this node within the document tree.

The root cursor for this document tree.

The root cursor for this document tree.

The target within the document tree this cursor points to (a markup document or a sub-tree).

The target within the document tree this cursor points to (a markup document or a sub-tree).