target_tree.TargetTreeNode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Treepat Show documentation
Show all versions of Treepat Show documentation
Treepat is a language to recognise patterns in trees in a similar way as regular expressions recognize patterns in strings. Treepat includes analogous operators to regex union, concatenation, and closure, which are extended to the notion of trees.
package target_tree
interface TargetTreeNode {
val name: String
val tag: String
val id: Int
var children: List
fun moveToRightSibling(): TargetTreeNode?
fun moveToLeftSibling(): TargetTreeNode?
fun moveToParent(): TargetTreeNode?
fun moveToFirstChild(): TargetTreeNode?
fun matchedNodesString(selectedNodes: List): String
fun nextLeftmostPreorderNode(): TargetTreeNode?
override fun toString(): String
}