A zipper-style cursor for navigating the CST. Tracks the current node and its position within the tree, allowing movement to parent, children, and siblings without re-traversing from the root.
Attributes
- Companion
- object
- Source
- CstCursor.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
The direct children of the current node.
Depth of this cursor in the tree (0 = root).
Move to the first child, if any.
True if this cursor has no children.
True if this cursor is at the root of the tree.
Move to the last child, if any.
Move to the next sibling, if any.
Move to the parent node, if any.
Walk the tree depth-first, pre-order, starting from this cursor.
Move to the previous sibling, if any.
Return the root node by walking up from the current position.
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala