Package ch.usi.si.seart.treesitter
Provides all the core classes for interfacing with the tree-sitter API.
- Since:
- 1.0.0
-
Class Summary Class Description Capture Represents the named capture of aQuery.InputEdit Represents an edit operation on a section of source code.Language.Metadata Represents Git metadata related to the grammar submodule that a language was built from.LibraryLoader Utility for loading the native system library.Node A single node within a syntaxTree.OffsetTreeCursor Specialization ofTreeCursorthat applies a positional offset to visited nodes.Parser Parser.Builder Facilitates the construction ofParserinstances.Pattern Represents a single symbolic expression (s-expression) pattern of aQuery.Point Represents a two-dimensional point with row and column coordinates.Query A query consists of one or more patterns, where each pattern is a symbolic expression (S-expression) that matches a certain set of nodes in an abstract syntax tree.Query.Builder Facilitates the construction ofQueryinstances.QueryCursor Cursor used for executing queries, carrying the state needed to process them.QueryMatch Represents a collection of captured nodes, matched with a single queryPattern.Range Represents the portions of source code taken up by a node within a file or snippet.Symbol Represents a symbol in an abstract syntaxTree.Tree A Tree represents the syntax tree of an entire source code file.TreeCursor A tree cursor is a stateful object that allows you to walk a syntax tree with maximum efficiency.TreeCursorNode Special type of node returned during tree traversals withTreeCursor. -
Enum Summary Enum Description Language Enum that consists of all the officially recognized programming languages.Symbol.Type Enumeration representing the possible types of symbols.