Packages

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

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

target

the document tree this cursor points to

parent

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

root

the root of this tree

config

the configuration associated with this tree

position

the position of this tree within the document tree

Linear Supertypes
Serializable, Serializable, Product, Equals, Cursor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeCursor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Cursor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeCursor(target: DocumentTree, parent: Option[TreeCursor], root: RootCursor, config: Config, position: TreePosition)

    target

    the document tree this cursor points to

    parent

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

    root

    the root of this tree

    config

    the configuration associated with this tree

    position

    the position of this tree within the document tree

Type Members

  1. type Target = DocumentTree

    The type of the target this cursor points to.

    The type of the target this cursor points to.

    Definition Classes
    TreeCursorCursor

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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. This method behaves differently than the children method which only returns the cursors on this level of the tree hierarchy.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. lazy val children: Seq[Cursor]

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

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val config: Config

    The configuration associated with this node.

    The configuration associated with this node.

    Definition Classes
    TreeCursorCursor
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val parent: Option[TreeCursor]
  17. val 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

    Definition Classes
    TreeCursorCursor
  18. val position: TreePosition

    The position of this node within the document tree.

    The position of this node within the document tree.

    Definition Classes
    TreeCursorCursor
  19. def rewriteTarget(rules: RewriteRulesBuilder): Either[TreeConfigErrors, DocumentTree]

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

  20. val root: RootCursor

    The root cursor for this document tree.

    The root cursor for this document tree.

    Definition Classes
    TreeCursorCursor
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. val target: DocumentTree

    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).

    Definition Classes
    TreeCursorCursor
  23. lazy val titleDocument: Option[DocumentCursor]

    The cursor for the title document of this tree.

  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Cursor

Inherited from AnyRef

Inherited from Any

Ungrouped