Uses of Class
ch.usi.si.seart.treesitter.Node
-
Packages that use Node Package Description ch.usi.si.seart.treesitter Provides all the core classes for interfacing with the tree-sitter API. -
-
Uses of Node in ch.usi.si.seart.treesitter
Methods in ch.usi.si.seart.treesitter that return Node Modifier and Type Method Description NodeNode. getChild(int child)Get the childNodeat the given index.NodeNode. getChildByFieldName(@NotNull String name)Get the childNoderesiding in a given named field.NodeOffsetTreeCursor. getCurrentNode()NodeTreeCursor. getCurrentNode()Get theNodethat the cursor is currently pointing to.NodeNode. getDescendant(int startByte, int endByte)Get the smallest node within this node that spans the given range of bytes.NodeNode. getDescendant(@NotNull Point startPoint, @NotNull Point endPoint)Get the smallest node within this node that spans the given range of points.NodeNode. getFirstChildForByte(int offset)Get the first childNodethat extends beyond the given byte offset.NodeNode. getFirstNamedChildForByte(int offset)Get the first named childNodethat extends beyond the given byte offset.NodeNode. getNamedChild(int child)Get the named childNodeat the given index.NodeNode. getNamedDescendant(int startByte, int endByte)Get the smallest named node within this node that spans the given range of bytes.NodeNode. getNamedDescendant(@NotNull Point startPoint, @NotNull Point endPoint)Get the smallest named node within this node that spans the given range of points.NodeNode. getNextNamedSibling()Get the next named siblingNode.NodeNode. getNextSibling()Get the next siblingNode.NodeNode. getParent()Get the parentNode.NodeNode. getPrevNamedSibling()Get the previous named siblingNode.NodeNode. getPrevSibling()Get the previous siblingNode.NodeTree. getRootNode()Get the topmostNodeof the syntax tree.Methods in ch.usi.si.seart.treesitter that return types with arguments of type Node Modifier and Type Method Description Map<Capture,Collection<Node>>QueryMatch. getCaptures()Retrieves a mapping between the captures and captured nodes in this match.List<Node>Node. getChildren()Get an ordered list of this node's children.List<Node>Node. getNamedChildren()Get an ordered list of this node's named children.Collection<Node>QueryMatch. getNodes()Retrieves all the captured nodes from this match.Collection<Node>QueryMatch. getNodes(Capture capture)Retrieves all nodes captured under a specific capture.Collection<Node>QueryMatch. getNodes(String name)Retrieves all nodes captured under a specific capture with the given name.@NotNull Iterator<Node>Node. iterator()Create an iterator over the current node's subtree.@NotNull Iterator<Node>Tree. iterator()Returns an iterator over the entire syntax tree, starting from the root.Methods in ch.usi.si.seart.treesitter with parameters of type Node Modifier and Type Method Description booleanOffsetTreeCursor. gotoNode(@NotNull Node node)booleanTreeCursor. gotoNode(@NotNull Node node)Move the cursor to an arbitrary node.intLanguage. nextState(@NotNull Node node)Obtain the next language parse state for a givenNode.Method parameters in ch.usi.si.seart.treesitter with type arguments of type Node Modifier and Type Method Description voidOffsetTreeCursor. preorderTraversal(@NotNull Consumer<Node> callback)voidTreeCursor. preorderTraversal(@NotNull Consumer<Node> callback)Iteratively traverse over the parse tree, applying a callback to the nodes before they are visited.Constructors in ch.usi.si.seart.treesitter with parameters of type Node Constructor Description OffsetTreeCursor(@NotNull Node node, @NotNull Point offset)
-