Tree Cursor
A class that can be used to efficiently walk a syntax tree.
NOTE: If you're targeting Android SDK level < 33, you must use
or close the instance to free up resources.
A class that can be used to efficiently walk a syntax tree.
A class that can be used to efficiently walk a syntax tree.
A class that can be used to efficiently walk a syntax tree.
Properties
The depth of the cursor's current node relative to the original node that the cursor was constructed with.
The depth of the cursor's current node relative to the original node that the cursor was constructed with.
The depth of the cursor's current node relative to the original node that the cursor was constructed with.
The depth of the cursor's current node relative to the original node that the cursor was constructed with.
The index of the cursor's current node out of all the descendants of the original node that the cursor was constructed with.
The index of the cursor's current node out of all the descendants of the original node that the cursor was constructed with.
The index of the cursor's current node out of all the descendants of the original node that the cursor was constructed with.
The index of the cursor's current node out of all the descendants of the original node that the cursor was constructed with.
The field ID of the tree cursor's current node, or 0
.
The field ID of the tree cursor's current node, or 0
.
The field ID of the tree cursor's current node, or 0
.
The field ID of the tree cursor's current node, or 0
.
The field name of the tree cursor's current node, if available.
The field name of the tree cursor's current node, if available.
The field name of the tree cursor's current node, if available.
The field name of the tree cursor's current node, if available.
The current node of the cursor.
The current node of the cursor.
The current node of the cursor.
The current node of the cursor.
Functions
Create a shallow copy of the tree cursor.
Create a shallow copy of the tree cursor.
Create a shallow copy of the tree cursor.
Create a shallow copy of the tree cursor.
Move the cursor to the node that is the nth descendant of the original node that the cursor was constructed with, where 0
represents the original node itself.
Move the cursor to the node that is the nth descendant of the original node that the cursor was constructed with, where 0
represents the original node itself.
Move the cursor to the node that is the nth descendant of the original node that the cursor was constructed with, where 0
represents the original node itself.
Move the cursor to the node that is the nth descendant of the original node that the cursor was constructed with, where 0
represents the original node itself.
Move the cursor to the first child of its current node.
Move the cursor to the first child of its current node.
Move the cursor to the first child of its current node.
Move the cursor to the first child of its current node.
Move the cursor to the first child of its current node that extends beyond the given byte offset.
Move the cursor to the first child of its current node that extends beyond the given byte offset.
Move the cursor to the first child of its current node that extends beyond the given byte offset.
Move the cursor to the first child of its current node that extends beyond the given byte offset.
Move the cursor to the first child of its current node that extends beyond the given point offset.
Move the cursor to the first child of its current node that extends beyond the given point offset.
Move the cursor to the first child of its current node that extends beyond the given point offset.
Move the cursor to the first child of its current node that extends beyond the given point offset.
Move the cursor to the last child of its current node.
Move the cursor to the last child of its current node.
Move the cursor to the last child of its current node.
Move the cursor to the last child of its current node.
Move the cursor to the next sibling of its current node.
Move the cursor to the next sibling of its current node.
Move the cursor to the next sibling of its current node.
Move the cursor to the next sibling of its current node.
Move the cursor to the parent of its current node.
Move the cursor to the parent of its current node.
Move the cursor to the parent of its current node.
Move the cursor to the parent of its current node.
Move the cursor to the previous sibling of its current node.
Move the cursor to the previous sibling of its current node.
Move the cursor to the previous sibling of its current node.
Move the cursor to the previous sibling of its current node.
Reset the cursor to start at a different node.
Reset the cursor to start at the same position as another cursor.
Reset the cursor to start at a different node.
Reset the cursor to start at the same position as another cursor.
Reset the cursor to start at a different node.
Reset the cursor to start at the same position as another cursor.
Reset the cursor to start at a different node.
Reset the cursor to start at the same position as another cursor.