A B C D E G H I J K L M N O P Q R S T V W X Y _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ABIVersionError - Error in ch.usi.si.seart.treesitter.error
-
An error raised whenever there is an ABI version mismatch.
- ABIVersionError() - Constructor for error ch.usi.si.seart.treesitter.error.ABIVersionError
- accept(T) - Method in interface ch.usi.si.seart.treesitter.function.IOExceptionThrowingConsumer
-
Performs this operation on the given argument.
- AGDA - ch.usi.si.seart.treesitter.Language
-
Agda language mapping.
B
C
- C - ch.usi.si.seart.treesitter.Language
-
C language mapping.
- ch.usi.si.seart.treesitter - package ch.usi.si.seart.treesitter
- ch.usi.si.seart.treesitter.error - package ch.usi.si.seart.treesitter.error
- ch.usi.si.seart.treesitter.exception - package ch.usi.si.seart.treesitter.exception
- ch.usi.si.seart.treesitter.exception.query - package ch.usi.si.seart.treesitter.exception.query
- ch.usi.si.seart.treesitter.function - package ch.usi.si.seart.treesitter.function
- ch.usi.si.seart.treesitter.printer - package ch.usi.si.seart.treesitter.printer
- close() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- close() - Method in class ch.usi.si.seart.treesitter.Parser
-
Delete the parser, freeing all the memory that it used.
- close() - Method in class ch.usi.si.seart.treesitter.Query
-
Delete the query, freeing all the memory that it used.
- close() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Delete the query cursor, freeing all the memory that it used.
- close() - Method in class ch.usi.si.seart.treesitter.Tree
-
Delete the tree, freeing all the memory that it used.
- close() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Delete the tree cursor, freeing all the memory that it used.
- countCaptures() - Method in class ch.usi.si.seart.treesitter.Query
- countPatterns() - Method in class ch.usi.si.seart.treesitter.Query
- countStrings() - Method in class ch.usi.si.seart.treesitter.Query
- CPP - ch.usi.si.seart.treesitter.Language
-
C++ language mapping.
- CSHARP - ch.usi.si.seart.treesitter.Language
-
C# language mapping.
- CSS - ch.usi.si.seart.treesitter.Language
-
CSS language mapping.
D
- DART - ch.usi.si.seart.treesitter.Language
-
Dart language mapping.
- DotGraphPrinter - Class in ch.usi.si.seart.treesitter.printer
-
Printer used for generating DOT graph representations of trees.
- DotGraphPrinter(Tree) - Constructor for class ch.usi.si.seart.treesitter.printer.DotGraphPrinter
E
- edit(InputEdit) - Method in class ch.usi.si.seart.treesitter.Tree
-
Edit the syntax tree to keep it in sync with source code that has been edited.
- ELM - ch.usi.si.seart.treesitter.Language
-
Elm language mapping.
- EMBEDDED_TEMPLATE - ch.usi.si.seart.treesitter.Language
-
Embedded template (EJS & ERS) language mapping.
- ENO - ch.usi.si.seart.treesitter.Language
-
Eno language mapping.
- equals(Object) - Method in class ch.usi.si.seart.treesitter.Node
- execute() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Start running a given query on a given node.
- export() - Method in class ch.usi.si.seart.treesitter.printer.DotGraphPrinter
-
Generates a DOT graph of the tree, writing it directly to a file.
- export() - Method in interface ch.usi.si.seart.treesitter.printer.TreePrinter
-
Generates a file containing the string representation of an Abstract Syntax Tree (AST).
G
- getCaptureName(QueryCapture) - Method in class ch.usi.si.seart.treesitter.Query
- getChild(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's child at the given index, where zero represents the first child.
- getChildByFieldName(String) - Method in class ch.usi.si.seart.treesitter.Node
- getChildCount() - Method in class ch.usi.si.seart.treesitter.Node
- getChildren() - Method in class ch.usi.si.seart.treesitter.Node
- getContent() - Method in class ch.usi.si.seart.treesitter.Node
- getCurrentFieldName() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentFieldName() - Method in class ch.usi.si.seart.treesitter.TreeCursor
- getCurrentNode() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentNode() - Method in class ch.usi.si.seart.treesitter.TreeCursor
- getCurrentTreeCursorNode() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentTreeCursorNode() - Method in class ch.usi.si.seart.treesitter.TreeCursor
- getDescendantForByteRange(int, int) - Method in class ch.usi.si.seart.treesitter.Node
- getEndByte() - Method in class ch.usi.si.seart.treesitter.Node
- getEndPoint() - Method in class ch.usi.si.seart.treesitter.Node
- getFieldNameForChild(int) - Method in class ch.usi.si.seart.treesitter.Node
- getFirstChildForByte(int) - Method in class ch.usi.si.seart.treesitter.Node
- getFirstNamedChildForByte(int) - Method in class ch.usi.si.seart.treesitter.Node
- getNextNamedSibling() - Method in class ch.usi.si.seart.treesitter.Node
- getNextSibling() - Method in class ch.usi.si.seart.treesitter.Node
- getNodeString() - Method in class ch.usi.si.seart.treesitter.Node
-
Deprecated, for removal: This API element is subject to removal in a future version.This operation is potentially unsafe for large trees
- getParent() - Method in class ch.usi.si.seart.treesitter.Node
- getPrevNamedSibling() - Method in class ch.usi.si.seart.treesitter.Node
- getPrevSibling() - Method in class ch.usi.si.seart.treesitter.Node
- getRange() - Method in class ch.usi.si.seart.treesitter.Node
- getRootNode() - Method in class ch.usi.si.seart.treesitter.Tree
- getStartByte() - Method in class ch.usi.si.seart.treesitter.Node
- getStartPoint() - Method in class ch.usi.si.seart.treesitter.Node
- getTimeout() - Method in class ch.usi.si.seart.treesitter.Parser
-
Get the duration in microseconds that parsing is allowed to take.
- getType() - Method in class ch.usi.si.seart.treesitter.Node
- GO - ch.usi.si.seart.treesitter.Language
-
Go language mapping.
- gotoFirstChild() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoFirstChild() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the first child of its current node.
- gotoNextSibling() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoNextSibling() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the next sibling of its current node.
- gotoParent() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoParent() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the parent of its current node.
H
- hasCaptures() - Method in class ch.usi.si.seart.treesitter.Query
- hasError() - Method in class ch.usi.si.seart.treesitter.Node
- hashCode() - Method in class ch.usi.si.seart.treesitter.Node
- HASKELL - ch.usi.si.seart.treesitter.Language
-
Haskell language mapping.
- HTML - ch.usi.si.seart.treesitter.Language
-
HTML language mapping.
I
- InputEdit - Class in ch.usi.si.seart.treesitter
-
Represents an edit operation on a section of source code.
- InputEdit() - Constructor for class ch.usi.si.seart.treesitter.InputEdit
- IOExceptionThrowingConsumer<T> - Interface in ch.usi.si.seart.treesitter.function
-
Represents an operation that accepts a single input argument and returns no result.
- isExecuted() - Method in class ch.usi.si.seart.treesitter.QueryCursor
- isExtra() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if the node is extra.
- isMissing() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if the node is missing.
- isNamed() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if the node is named.
- isNull() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if the node is null node.
- isOrigin() - Method in class ch.usi.si.seart.treesitter.Point
-
Checks if this point represents the origin, which is when both the row and the column are zero.
- iterator() - Method in class ch.usi.si.seart.treesitter.Node
- iterator() - Method in class ch.usi.si.seart.treesitter.QueryCursor
- iterator() - Method in class ch.usi.si.seart.treesitter.Tree
J
- JAVA - ch.usi.si.seart.treesitter.Language
-
Java language mapping.
- JAVASCRIPT - ch.usi.si.seart.treesitter.Language
-
JavaScript language mapping.
- JULIA - ch.usi.si.seart.treesitter.Language
-
Julia language mapping.
K
L
- Language - Enum in ch.usi.si.seart.treesitter
-
Enum that consists of all the officially recognized programming language mappings.
- LibraryLoader - Class in ch.usi.si.seart.treesitter
-
Utility for loading the native system library.
- LibraryLoader() - Constructor for class ch.usi.si.seart.treesitter.LibraryLoader
- load() - Method in class ch.usi.si.seart.treesitter.LibraryLoader
-
Load the native library.
- LUA - ch.usi.si.seart.treesitter.Language
-
Lua language mapping.
M
N
- nextMatch() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Advance to the next match of the currently running query.
- Node - Class in ch.usi.si.seart.treesitter
-
A Node represents a single node in the syntax tree.
O
- OCAML - ch.usi.si.seart.treesitter.Language
-
OCaml language mapping.
- OffsetTreeCursor - Class in ch.usi.si.seart.treesitter
-
Specialization of
TreeCursorthat applies a positional offset to visited nodes. - OffsetTreeCursor(Node, Point) - Constructor for class ch.usi.si.seart.treesitter.OffsetTreeCursor
P
- parse(String) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to parse some source code and create a syntax tree.
- parse(String, Tree) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to incrementally parse a changed source code string, reusing unchanged parts of the tree to speed up the process.
- parse(Path) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to parse some source code found in a file at the specified path.
- parse(Path, Tree) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to parse some source code found in a file at the specified path, reusing unchanged parts of the tree to speed up the process.
- parseFile(Path) - Method in class ch.usi.si.seart.treesitter.Parser
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Parser.parse(Path)instead - Parser - Class in ch.usi.si.seart.treesitter
-
Parsers are stateful objects that can be assigned a language and used to produce a
Treebased on some source code. - Parser(Language) - Constructor for class ch.usi.si.seart.treesitter.Parser
- parseString(String) - Method in class ch.usi.si.seart.treesitter.Parser
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Parser.parse(String)instead - parseString(String, Tree) - Method in class ch.usi.si.seart.treesitter.Parser
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Parser.parse(String, Tree)instead - ParsingException - Exception in ch.usi.si.seart.treesitter.exception
-
Thrown when there is an error during parsing.
- ParsingException() - Constructor for exception ch.usi.si.seart.treesitter.exception.ParsingException
- PHP - ch.usi.si.seart.treesitter.Language
-
PHP language mapping.
- Point - Class in ch.usi.si.seart.treesitter
-
Represents a two-dimensional point with row and column coordinates.
- Point() - Constructor for class ch.usi.si.seart.treesitter.Point
- preorderTraversal(Consumer<Node>) - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- preorderTraversal(Consumer<Node>) - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Iteratively traverse over the parse tree, applying a callback to the nodes before they are visited.
- print() - Method in class ch.usi.si.seart.treesitter.printer.DotGraphPrinter
-
Generates a DOT graph of the tree.
- print() - Method in interface ch.usi.si.seart.treesitter.printer.TreePrinter
-
Generates a string representation of an Abstract Syntax Tree (AST).
- PROLOG - Static variable in class ch.usi.si.seart.treesitter.printer.XMLPrinter
- PYTHON - ch.usi.si.seart.treesitter.Language
-
Python language mapping.
Q
- Query - Class in ch.usi.si.seart.treesitter
-
A query consists of one or more patterns, where each pattern is an S-expression that matches a certain set of nodes in a syntax tree.
- Query(Language, String) - Constructor for class ch.usi.si.seart.treesitter.Query
- QueryCapture - Class in ch.usi.si.seart.treesitter
-
Wrapper for a single node matched with a
Querycapture. - QueryCapture() - Constructor for class ch.usi.si.seart.treesitter.QueryCapture
- QueryCaptureException - Exception in ch.usi.si.seart.treesitter.exception.query
-
Thrown when a query string has incorrect captures.
- QueryCaptureException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QueryCaptureException
- QueryCursor - Class in ch.usi.si.seart.treesitter
-
Cursor used for executing queries, carrying the state needed to process them.
- QueryCursor(Node, Query) - Constructor for class ch.usi.si.seart.treesitter.QueryCursor
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Node.walk(Query)instead - QueryException - Exception in ch.usi.si.seart.treesitter.exception.query
-
The base exception type for all exceptions related to tree-sitter queries.
- QueryException() - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QueryException
- QueryFieldException - Exception in ch.usi.si.seart.treesitter.exception.query
-
Thrown when the targeted node does not have a field with the specified name.
- QueryFieldException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QueryFieldException
- QueryMatch - Class in ch.usi.si.seart.treesitter
-
Collection of nodes matched with a single
Querycapture. - QueryMatch() - Constructor for class ch.usi.si.seart.treesitter.QueryMatch
- QueryNodeTypeException - Exception in ch.usi.si.seart.treesitter.exception.query
-
Thrown when a specified node type does not exist in the language grammar.
- QueryNodeTypeException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QueryNodeTypeException
- QueryStructureException - Exception in ch.usi.si.seart.treesitter.exception.query
-
Thrown when the node structure in the query does not adhere to the grammar.
- QueryStructureException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QueryStructureException
- QuerySyntaxException - Exception in ch.usi.si.seart.treesitter.exception.query
-
Thrown when a query has incorrect syntax.
- QuerySyntaxException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.query.QuerySyntaxException
R
- Range - Class in ch.usi.si.seart.treesitter
-
Represents the portions of source code taken up by a node within a file or snippet.
- Range(Node) - Constructor for class ch.usi.si.seart.treesitter.Range
- RUBY - ch.usi.si.seart.treesitter.Language
-
Ruby language mapping.
- RUST - ch.usi.si.seart.treesitter.Language
-
Rust language mapping.
S
- SCALA - ch.usi.si.seart.treesitter.Language
-
Scala language mapping.
- SCSS - ch.usi.si.seart.treesitter.Language
-
SCSS language mapping.
- setLanguage(Language) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the language that the parser should use for parsing.
- setTimeout(long) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration in microseconds that parsing should be allowed to take before halting.
- setTimeout(long, TimeUnit) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration that parsing should be allowed to take before halting.
- setTimeout(Duration) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration that parsing should be allowed to take before halting.
- SWIFT - ch.usi.si.seart.treesitter.Language
-
Swift language mapping.
- SymbolicExpressionPrinter - Class in ch.usi.si.seart.treesitter.printer
-
Printer used for generating Symbolic Expression (S-expression) representations of trees using an iterative approach.
- SymbolicExpressionPrinter(TreeCursor) - Constructor for class ch.usi.si.seart.treesitter.printer.SymbolicExpressionPrinter
- SyntaxTreePrinter - Class in ch.usi.si.seart.treesitter.printer
-
Printer used for generating human-readable representations of trees using an iterative approach.
- SyntaxTreePrinter(TreeCursor) - Constructor for class ch.usi.si.seart.treesitter.printer.SyntaxTreePrinter
T
- TOML - ch.usi.si.seart.treesitter.Language
-
TOML language mapping.
- toString() - Method in enum ch.usi.si.seart.treesitter.Language
- toString() - Method in class ch.usi.si.seart.treesitter.Node
- toString() - Method in class ch.usi.si.seart.treesitter.Parser
- toString() - Method in class ch.usi.si.seart.treesitter.Point
-
Returns a string representation of this point in the format:
- toString() - Method in class ch.usi.si.seart.treesitter.Query
- toString() - Method in class ch.usi.si.seart.treesitter.QueryCapture
- toString() - Method in class ch.usi.si.seart.treesitter.QueryCursor
- toString() - Method in class ch.usi.si.seart.treesitter.QueryMatch
- toString() - Method in class ch.usi.si.seart.treesitter.Range
-
Returns a string representation of this range in the format:
- toString() - Method in class ch.usi.si.seart.treesitter.Tree
- toString() - Method in class ch.usi.si.seart.treesitter.TreeCursor
- toString() - Method in class ch.usi.si.seart.treesitter.TreeCursorNode
- toUnchecked(IOExceptionThrowingConsumer<T>) - Static method in interface ch.usi.si.seart.treesitter.function.IOExceptionThrowingConsumer
-
Returns a wrapped
Consumerthat performs this operation. - Tree - Class in ch.usi.si.seart.treesitter
-
A Tree represents the syntax tree of an entire source code file.
- TreeCursor - Class in ch.usi.si.seart.treesitter
-
A tree cursor is a stateful object that allows you to walk a syntax tree with maximum efficiency.
- TreeCursorNode - Class in ch.usi.si.seart.treesitter
-
Special type of node returned during tree traversals with
TreeCursor. - TreePrinter - Interface in ch.usi.si.seart.treesitter.printer
-
Contract for classes that can generate string representations of Abstract Syntax Trees (ASTs).
- TreeSitterException - Exception in ch.usi.si.seart.treesitter.exception
-
The base exception type for all tree-sitter exceptions.
- TreeSitterException() - Constructor for exception ch.usi.si.seart.treesitter.exception.TreeSitterException
- TSX - ch.usi.si.seart.treesitter.Language
-
JSX-enhanced TypeScript language mapping.
- TYPESCRIPT - ch.usi.si.seart.treesitter.Language
-
TypeScript language mapping.
V
- validate(Language) - Static method in enum ch.usi.si.seart.treesitter.Language
- valueOf(String) - Static method in enum ch.usi.si.seart.treesitter.Language
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ch.usi.si.seart.treesitter.Language
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VUE - ch.usi.si.seart.treesitter.Language
-
Vue language mapping.
W
- walk() - Method in class ch.usi.si.seart.treesitter.Node
- walk(Query) - Method in class ch.usi.si.seart.treesitter.Node
- WASM - ch.usi.si.seart.treesitter.Language
-
WebAssembly language mapping.
X
- XMLPrinter - Class in ch.usi.si.seart.treesitter.printer
-
Printer used for generating Extensible Markup Language (XML) representations of trees using an iterative approach.
- XMLPrinter(TreeCursor) - Constructor for class ch.usi.si.seart.treesitter.printer.XMLPrinter
Y
_
A B C D E G H I J K L M N O P Q R S T V W X Y _All Classes All Packages