A B C D E F G H I J K L M N O P Q R S T V W X Y Z
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(int) - 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.
- ADA - ch.usi.si.seart.treesitter.Language
-
Ada programming language.
- add(Point) - Method in class ch.usi.si.seart.treesitter.Point
-
Adds another point to this point, resulting in a new point with coordinates equal to the sum of the coordinates of this point and the other point.
- ANONYMOUS - ch.usi.si.seart.treesitter.Symbol.Type
- associatedWith(Path) - Static method in enum ch.usi.si.seart.treesitter.Language
-
Selects enum values potentially associated with a file at a given path.
- AUXILIARY - ch.usi.si.seart.treesitter.Symbol.Type
B
- BASH - ch.usi.si.seart.treesitter.Language
-
Bash: Bourne Again SHell.
- build() - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Builds and returns a new Parser instance with the configured language.
- build() - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Builds and returns a new query instance with the configured language and pattern.
- build() - Method in class ch.usi.si.seart.treesitter.Range.Builder
-
Builds a new range instance with the attributes specified in this builder.
- builder() - Static method in class ch.usi.si.seart.treesitter.Parser
-
Obtain a new
Builderfor constructing a parser instance. - builder() - Static method in class ch.usi.si.seart.treesitter.Query
-
Obtain a new
Builderfor constructing a query instance. - builder() - Static method in class ch.usi.si.seart.treesitter.Range
-
Obtain a new
Range.Builderinstance for constructing a range. - Builder() - Constructor for class ch.usi.si.seart.treesitter.Parser.Builder
- Builder() - Constructor for class ch.usi.si.seart.treesitter.Query.Builder
- Builder() - Constructor for class ch.usi.si.seart.treesitter.Range.Builder
- ByteOffsetOutOfBoundsException - Exception in ch.usi.si.seart.treesitter.exception
-
Thrown to indicate that a specified byte offset is outside a node's byte range.
- ByteOffsetOutOfBoundsException(int) - Constructor for exception ch.usi.si.seart.treesitter.exception.ByteOffsetOutOfBoundsException
C
- C - ch.usi.si.seart.treesitter.Language
-
C programming language.
- C_SHARP - ch.usi.si.seart.treesitter.Language
-
C# programming language.
- Capture - Class in ch.usi.si.seart.treesitter
-
Represents the named capture of a
Query. - CAPTURE - ch.usi.si.seart.treesitter.Predicate.Step.Type
-
Steps with this type represent names of captures.
- ch.usi.si.seart.treesitter - package ch.usi.si.seart.treesitter
-
Provides all the core classes for interfacing with the tree-sitter API.
- ch.usi.si.seart.treesitter.error - package ch.usi.si.seart.treesitter.error
-
Provides
Errorsubclasses related to tree-sitter. - ch.usi.si.seart.treesitter.exception - package ch.usi.si.seart.treesitter.exception
-
Provides
Exceptionsubclasses related to tree-sitter. - ch.usi.si.seart.treesitter.exception.parser - package ch.usi.si.seart.treesitter.exception.parser
-
Provides parser-specific exception class hierarchy.
- ch.usi.si.seart.treesitter.exception.query - package ch.usi.si.seart.treesitter.exception.query
-
Provides query-specific exception class hierarchy.
- ch.usi.si.seart.treesitter.function - package ch.usi.si.seart.treesitter.function
-
Provides functional interface utilities.
- ch.usi.si.seart.treesitter.printer - package ch.usi.si.seart.treesitter.printer
-
Provides parse tree serialization utilities.
- ch.usi.si.seart.treesitter.version - package ch.usi.si.seart.treesitter.version
-
Provides version information for the
tree-sitterAPI and this library. - CLOJURE - ch.usi.si.seart.treesitter.Language
-
Clojure programming language.
- clone() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- clone() - Method in class ch.usi.si.seart.treesitter.Tree
-
Clone this tree, creating a separate, independent instance.
- clone() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Clone this cursor, creating a separate, independent instance.
- close() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- CMAKE - ch.usi.si.seart.treesitter.Language
-
The CMake language.
- COMMON_LISP - ch.usi.si.seart.treesitter.Language
-
Common Lisp programming language.
- compareTo(Point) - Method in class ch.usi.si.seart.treesitter.Point
-
Compares this point with another point for positional order.
- CPP - ch.usi.si.seart.treesitter.Language
-
C++ programming language.
- CSS - ch.usi.si.seart.treesitter.Language
-
CSS: Cascading Style Sheets.
D
- DART - ch.usi.si.seart.treesitter.Language
-
Dart programming language.
- disable() - Method in class ch.usi.si.seart.treesitter.Capture
-
Disable this capture, preventing it from returning in matches.
- disable() - Method in class ch.usi.si.seart.treesitter.Pattern
-
Disable this pattern, preventing it from further matching.
- DONE - ch.usi.si.seart.treesitter.Predicate.Step.Type
-
Steps with this type are sentinels that represent the end of an individual predicate.
- DOT - ch.usi.si.seart.treesitter.Language
-
DOT graph description language.
- 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
- DTD - ch.usi.si.seart.treesitter.Language
-
DTD: Document Type Definition.
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.
- ELIXIR - ch.usi.si.seart.treesitter.Language
-
Elixir programming language.
- ELM - ch.usi.si.seart.treesitter.Language
-
Elm programming language.
- EMBEDDED_TEMPLATE - ch.usi.si.seart.treesitter.Language
-
Embedded HTML templates: EJS & ERS.
- endByte(int) - Method in class ch.usi.si.seart.treesitter.Range.Builder
-
Sets the end byte offset for this range.
- endPoint(Point) - Method in class ch.usi.si.seart.treesitter.Range.Builder
-
Sets the end point for this range.
- equals(Object) - Method in class ch.usi.si.seart.treesitter.Capture
- equals(Object) - Method in class ch.usi.si.seart.treesitter.Node
- equals(Object) - Method in class ch.usi.si.seart.treesitter.Pattern
- equals(Object) - Method in class ch.usi.si.seart.treesitter.Symbol
- ERLANG - ch.usi.si.seart.treesitter.Language
-
Erlang programming language.
- execute() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Start running a query against a 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).
F
G
- getCaptures() - Method in class ch.usi.si.seart.treesitter.QueryMatch
-
Retrieves a mapping between the captures and captured nodes in this match.
- getChangedRanges(Tree) - Method in class ch.usi.si.seart.treesitter.Tree
-
Compare this old edited syntax tree to a new syntax tree representing the same document, returning a sequence of
Rangeinstances, their coordinates corresponding to changes made to the syntactic structure. - getChild(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the child
Nodeat the given index. - getChildByFieldName(String) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the child
Noderesiding in a given named field. - getChildCount() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the number of children associated with this node.
- getChildren() - Method in class ch.usi.si.seart.treesitter.Node
-
Get an ordered list of this node's children.
- getContent() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the source code content encapsulated by this node.
- getCurrentABIVersion() - Static method in class ch.usi.si.seart.treesitter.version.TreeSitter
-
The latest ABI version that is supported by the current version of the library.
- getCurrentDepth() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentDepth() - Method in class ch.usi.si.seart.treesitter.TreeCursor
- getCurrentFieldName() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentFieldName() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Get the field name of the
Nodethat the cursor is currently pointing to. - getCurrentNode() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentNode() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Get the
Nodethat the cursor is currently pointing to. - getCurrentTreeCursorNode() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- getCurrentTreeCursorNode() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Get the
TreeCursorNoderepresentation of theNodethat the cursor is currently pointing to. - getDescendant(int, int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the smallest node within this node that spans the given range of bytes.
- getDescendant(Point, Point) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the smallest node within this node that spans the given range of points.
- getDescendantCount() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's number of descendants, including one for the node itself.
- getEndByte() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the byte offset where this node ends.
- getEndOffset() - Method in class ch.usi.si.seart.treesitter.Pattern
- getEndPoint() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's end position in terms of rows and columns.
- getFieldNameForChild(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the field name of a child
Noderesiding at a given index. - getFirstChildForByte(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the first child
Nodethat extends beyond the given byte offset. - getFirstNamedChildForByte(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the first named child
Nodethat extends beyond the given byte offset. - getFor(Language) - Static method in class ch.usi.si.seart.treesitter.Parser
-
Static factory for obtaining new parser instances.
- getFor(Language, String...) - Static method in class ch.usi.si.seart.treesitter.Query
-
Static factory for obtaining new query instances.
- getGrammarSymbol() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the syntax tree
Symbolassociated with this node as it appears in the grammar, ignoring aliases. - getGrammarType() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's type as a string as it appears in the grammar, ignoring aliases.
- getIncludedRanges() - Method in class ch.usi.si.seart.treesitter.Parser
-
Get an ordered, immutable
Rangesequence that corresponds to segments of source code included by the parser during parsing. - getLanguage() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the
Languagethat was used to parse this node’s syntax tree. - getLanguageVersion() - Static method in class ch.usi.si.seart.treesitter.Parser
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getLogger() - Method in class ch.usi.si.seart.treesitter.Parser
-
Get the
Loggerinstance used by the parser for writing debugging information during parsing. - getMetadata() - Method in enum ch.usi.si.seart.treesitter.Language
-
Get the Git metadata for the language.
- getMinimumABIVersion() - Static method in class ch.usi.si.seart.treesitter.version.TreeSitter
-
The earliest ABI version that is supported by the current version of the library.
- getMinimumCompatibleLanguageVersion() - Static method in class ch.usi.si.seart.treesitter.Parser
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getNamedChild(int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the named child
Nodeat the given index. - getNamedChildCount() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the number of named children associated with this node.
- getNamedChildren() - Method in class ch.usi.si.seart.treesitter.Node
-
Get an ordered list of this node's named children.
- getNamedDescendant(int, int) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the smallest named node within this node that spans the given range of bytes.
- getNamedDescendant(Point, Point) - Method in class ch.usi.si.seart.treesitter.Node
-
Get the smallest named node within this node that spans the given range of points.
- getNextNamedSibling() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the next named sibling
Node. - getNextParseState() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the parse state after this
Node. - getNextSibling() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the next sibling
Node. - getNodes() - Method in class ch.usi.si.seart.treesitter.QueryMatch
-
Retrieves all the captured nodes from this match.
- getNodes(Capture) - Method in class ch.usi.si.seart.treesitter.QueryMatch
-
Retrieves all nodes captured under a specific capture.
- getNodes(String) - Method in class ch.usi.si.seart.treesitter.QueryMatch
-
Retrieves all nodes captured under a specific capture with the given name.
- getParent() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the parent
Node. - getParseState() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the parse state of this
Node. - getPattern() - Method in class ch.usi.si.seart.treesitter.Query
-
Returns a concatenated, possibly non-rooted symbolic expression consisting of the individual query patterns.
- getPrevNamedSibling() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the previous named sibling
Node. - getPrevSibling() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the previous sibling
Node. - getQuantifier(Pattern) - Method in class ch.usi.si.seart.treesitter.Capture
-
Get the capture quantifier for a given query
Pattern. - getQuantifiers() - Method in class ch.usi.si.seart.treesitter.Capture
-
Get the capture quantifiers for all
Querypatterns. - getRange() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's
Range, indicating its byte and row-column position span. - getRootNode() - Method in class ch.usi.si.seart.treesitter.Tree
-
Get the topmost
Nodeof the syntax tree. - getSHA() - Method in class ch.usi.si.seart.treesitter.Language.Metadata
- getStartByte() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the byte offset where this node starts.
- getStartPoint() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's start position in terms of rows and columns.
- getSymbol() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the syntax tree
Symbolassociated with this node. - getTag() - Method in class ch.usi.si.seart.treesitter.Language.Metadata
- getTimeout() - Method in class ch.usi.si.seart.treesitter.Parser
-
Get the duration in microseconds that parsing is allowed to take.
- getTotalFields() - Method in enum ch.usi.si.seart.treesitter.Language
-
Deprecated, for removal: This API element is subject to removal in a future version.Just calculate the
sizeof the list returned byLanguage.fieldsgetter. - getTotalSymbols() - Method in enum ch.usi.si.seart.treesitter.Language
-
Deprecated, for removal: This API element is subject to removal in a future version.Just calculate the
sizeof the list returned byLanguage.symbolsgetter. - getType() - Method in class ch.usi.si.seart.treesitter.Node
-
Get the node's type as a string.
- getURL() - Method in class ch.usi.si.seart.treesitter.Language.Metadata
- getVersion() - Static method in class ch.usi.si.seart.treesitter.version.TreeSitter
-
Get the current version of
tree-sitter. - getVersion() - Static method in class ch.usi.si.seart.treesitter.version.Version
-
Get the current version of
java-tree-sitter. - GITATTRIBUTES - ch.usi.si.seart.treesitter.Language
-
Configurations used for associating attributes with file and path patterns in a repository.
- GITIGNORE - ch.usi.si.seart.treesitter.Language
-
Patterns for intentionally untracked files in a repository.
- GO - ch.usi.si.seart.treesitter.Language
-
Go programming language.
- 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.
- gotoFirstChild(int) - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoFirstChild(int) - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the first child of its current node that extends beyond the given byte offset.
- gotoFirstChild(Point) - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoFirstChild(Point) - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the first child of its current node that extends beyond the given row-column offset.
- gotoLastChild() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoLastChild() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the last 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.
- gotoNode(Node) - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoNode(Node) - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to an arbitrary 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.
- gotoPrevSibling() - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- gotoPrevSibling() - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Move the cursor to the previous sibling of its current node.
- GRAPHQL - ch.usi.si.seart.treesitter.Language
-
GraphQL: Graph Query Language.
H
- hasCaptures() - Method in class ch.usi.si.seart.treesitter.Query
-
Check if this query has captures.
- hasChanges() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if this node, or any of its children, has been edited.
- hasError() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if this node represents a syntax error or contains any syntax errors anywhere within it.
- hashCode() - Method in class ch.usi.si.seart.treesitter.Capture
- hashCode() - Method in class ch.usi.si.seart.treesitter.Node
- hashCode() - Method in class ch.usi.si.seart.treesitter.Pattern
- hashCode() - Method in class ch.usi.si.seart.treesitter.Symbol
- HASKELL - ch.usi.si.seart.treesitter.Language
-
Haskell programming language.
- hasNext() - Method in class ch.usi.si.seart.treesitter.LookaheadIterator
- HCL - ch.usi.si.seart.treesitter.Language
-
HCL: HashiCorp Configuration Language.
- HTML - ch.usi.si.seart.treesitter.Language
-
HTML: HyperText Markup Language.
I
- IncompatibleLanguageException - Exception in ch.usi.si.seart.treesitter.exception.parser
-
Thrown when attempts to set the parser language result in failure.
- IncompatibleLanguageException(Language) - Constructor for exception ch.usi.si.seart.treesitter.exception.parser.IncompatibleLanguageException
- 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.
- isError() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if this node represents a syntax error.
- isExtra() - Method in class ch.usi.si.seart.treesitter.Node
-
Check if the node is an 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
-
Create an iterator over the current node's subtree.
- iterator() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Returns an iterator over the query matches, starting from the first
QueryMatch. - iterator() - Method in class ch.usi.si.seart.treesitter.Tree
-
Returns an iterator over the entire syntax tree, starting from the root.
- iterator(int) - Method in enum ch.usi.si.seart.treesitter.Language
-
Create a lookahead iterator, beginning from a specific parse state.
J
- JAVA - ch.usi.si.seart.treesitter.Language
-
Java programming language.
- JAVASCRIPT - ch.usi.si.seart.treesitter.Language
-
JavaScript programming language.
- JSON - ch.usi.si.seart.treesitter.Language
-
JSON: JavaScript Object Notation.
- JULIA - ch.usi.si.seart.treesitter.Language
-
Julia programming language.
K
L
- language(Language) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Sets the programming language intended for parsing.
- language(Language) - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Sets the programming language associated with the query.
- Language - Enum in ch.usi.si.seart.treesitter
-
Enum that consists of all the officially recognized programming languages.
- Language.Metadata - Class in ch.usi.si.seart.treesitter
-
Represents Git metadata related to the grammar submodule that a language was built from.
- LATEX - ch.usi.si.seart.treesitter.Language
-
LaTeX markup language for document typesetting.
- 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.
- LookaheadIterator - Class in ch.usi.si.seart.treesitter
-
Specialized iterator that can be used to generate suggestions and improve syntax error diagnostics.
- LUA - ch.usi.si.seart.treesitter.Language
-
Lua programming language.
M
- MARKDOWN - ch.usi.si.seart.treesitter.Language
-
Markdown markup language for creating formatted text.
- Metadata() - Constructor for class ch.usi.si.seart.treesitter.Language.Metadata
- multiply(int) - Method in class ch.usi.si.seart.treesitter.Point
-
Multiplies the coordinates of this point by a scalar value, resulting in a new point with scaled coordinates.
N
- next() - Method in class ch.usi.si.seart.treesitter.LookaheadIterator
- nextMatch() - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Advance to the next match of the currently running query.
- nextState(Node) - Method in enum ch.usi.si.seart.treesitter.Language
-
Obtain the next language parse state for a given
Node. - NIX - ch.usi.si.seart.treesitter.Language
-
Nix programming language.
- Node - Class in ch.usi.si.seart.treesitter
-
A single node within a syntax
Tree. - Node() - Constructor for class ch.usi.si.seart.treesitter.Node
O
- OBJECTIVE_C - ch.usi.si.seart.treesitter.Language
-
Objective-C programming language.
- OCAML - ch.usi.si.seart.treesitter.Language
-
OCaml programming language.
- 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
- ONE - ch.usi.si.seart.treesitter.Quantifier
-
The capture will match exactly one node.
- ONE_OR_MORE - ch.usi.si.seart.treesitter.Quantifier
-
The capture will match at least one node.
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 reparse a changed source code string, re-using unchanged parts of the
Treeto expedite the process. - parse(Path) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to parse source code from a file.
- parse(Path, Tree) - Method in class ch.usi.si.seart.treesitter.Parser
-
Use the parser to reparse source code from a file, re-using unchanged parts of the
Treeto expedite the process. - Parser - Class in ch.usi.si.seart.treesitter
- Parser.Builder - Class in ch.usi.si.seart.treesitter
-
Facilitates the construction of
Parserinstances. - ParserException - Exception in ch.usi.si.seart.treesitter.exception.parser
-
The base exception type for all exceptions related to tree-sitter parsers.
- ParserException() - Constructor for exception ch.usi.si.seart.treesitter.exception.parser.ParserException
- ParsingException - Exception in ch.usi.si.seart.treesitter.exception.parser
-
Thrown when there is an error during parsing.
- ParsingException() - Constructor for exception ch.usi.si.seart.treesitter.exception.parser.ParsingException
- PASCAL - ch.usi.si.seart.treesitter.Language
-
Pascal programming language.
- pattern() - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Removes all currently specified query patterns.
- pattern(String) - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Adds a symbolic expression to the collection of patterns that the query will use to match nodes.
- Pattern - Class in ch.usi.si.seart.treesitter
-
Represents a single symbolic expression (s-expression) pattern of a
Query. - patterns(String...) - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Adds multiple symbolic expressions to the collection of patterns that the query will use to match nodes.
- patterns(List<String>) - Method in class ch.usi.si.seart.treesitter.Query.Builder
-
Sets the collection of patterns that the Query will use to match nodes.
- PHP - ch.usi.si.seart.treesitter.Language
-
PHP: Hypertext Preprocessor.
- 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
- PointOutOfBoundsException - Exception in ch.usi.si.seart.treesitter.exception
-
Thrown to indicate that a specified point is outside a node's point range.
- PointOutOfBoundsException(Point) - Constructor for exception ch.usi.si.seart.treesitter.exception.PointOutOfBoundsException
- Predicate - Class in ch.usi.si.seart.treesitter
-
A specialised symbolic expression (s-expression) that can appear anywhere within a
Pattern, instances of this class represent predicates within a pattern. - Predicate.Step - Class in ch.usi.si.seart.treesitter
-
Represents a single step in a
Predicate. - Predicate.Step.Type - Enum in ch.usi.si.seart.treesitter
-
Represents the type of
Step. - 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 programming language.
Q
- Quantifier - Enum in ch.usi.si.seart.treesitter
- Query - Class in ch.usi.si.seart.treesitter
-
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 - Class in ch.usi.si.seart.treesitter
-
Facilitates the construction of
Queryinstances. - 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.
- 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
-
Represents a collection of captured nodes, matched with a single query
Pattern. - 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
- R - ch.usi.si.seart.treesitter.Language
-
R programming language.
- RACKET - ch.usi.si.seart.treesitter.Language
-
Racket programming language.
- range() - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Removes all currently specified ranges.
- range(Range) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Specify an additional range that the parser should include when parsing.
- 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.Builder - Class in ch.usi.si.seart.treesitter
-
Facilitates the construction of
Rangeinstances. - ranges(Range...) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Specify additional ranges that the parser should include when parsing.
- ranges(List<Range>) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Sets the collection of ranges that the parser will include when parsing.
- REGULAR - ch.usi.si.seart.treesitter.Symbol.Type
- reset(TreeCursor) - Method in class ch.usi.si.seart.treesitter.OffsetTreeCursor
- reset(TreeCursor) - Method in class ch.usi.si.seart.treesitter.TreeCursor
-
Reset the cursor to the same state as another cursor.
- RUBY - ch.usi.si.seart.treesitter.Language
-
Ruby programming language.
- RUST - ch.usi.si.seart.treesitter.Language
-
Rust programming language.
S
- SCALA - ch.usi.si.seart.treesitter.Language
-
Scala programming language.
- SCHEME - ch.usi.si.seart.treesitter.Language
-
Scheme programming language.
- SCSS - ch.usi.si.seart.treesitter.Language
-
SCSS: Sassy CSS.
- setIncludedRanges(Range...) - Method in class ch.usi.si.seart.treesitter.Parser
-
Specify an arbitrary number of
Rangetext segments that the parser should include when parsing source code. - setIncludedRanges(List<Range>) - Method in class ch.usi.si.seart.treesitter.Parser
-
Specify a list of
Rangetext segments that the parser should include when parsing source code. - setLanguage(Language) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the language that the parser should use for parsing.
- setLogger(Logger) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the
Loggerthat a parser should use for writing debugging information during parsing. - setRange(int, int) - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Set the range of bytes positions in which the query will be executed.
- setRange(Point, Point) - Method in class ch.usi.si.seart.treesitter.QueryCursor
-
Set the range of row-column coordinates in which the query will be executed.
- setTimeout(long) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration in microseconds that parsing should be allowed to take.
- setTimeout(long, TimeUnit) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration that parsing should be allowed to take.
- setTimeout(Duration) - Method in class ch.usi.si.seart.treesitter.Parser
-
Set the maximum duration that parsing should be allowed to take.
- SHA - Static variable in class ch.usi.si.seart.treesitter.version.TreeSitter
- startByte(int) - Method in class ch.usi.si.seart.treesitter.Range.Builder
-
Sets the start byte offset for this range.
- startPoint(Point) - Method in class ch.usi.si.seart.treesitter.Range.Builder
-
Sets the start point for this range.
- Step(int, String) - Constructor for class ch.usi.si.seart.treesitter.Predicate.Step
- STRING - ch.usi.si.seart.treesitter.Predicate.Step.Type
-
Steps with this type represent literal strings.
- subtract(Point) - Method in class ch.usi.si.seart.treesitter.Point
-
Subtracts another point from this point, resulting in a new point with coordinates equal to the difference between the coordinates of this point and the other point.
- SVELTE - ch.usi.si.seart.treesitter.Language
-
Svelte front-end component framework.
- SWIFT - ch.usi.si.seart.treesitter.Language
-
Swift programming language.
- Symbol - Class in ch.usi.si.seart.treesitter
-
Represents a symbol in an abstract syntax
Tree. - Symbol.Type - Enum in ch.usi.si.seart.treesitter
-
Enumeration representing the possible types of symbols.
- 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
- TAG - Static variable in class ch.usi.si.seart.treesitter.version.TreeSitter
- THRIFT - ch.usi.si.seart.treesitter.Language
-
Thrift interface description language.
- timeout(long) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Set the maximum duration in microseconds that parsing should be allowed to take.
- timeout(long, TimeUnit) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Set the maximum duration that parsing should be allowed to take.
- timeout(Duration) - Method in class ch.usi.si.seart.treesitter.Parser.Builder
-
Set the maximum duration that parsing should be allowed to take.
- toBuilder() - Method in class ch.usi.si.seart.treesitter.Parser
-
Obtain a new
Builderinitialized with the current parser settings. - toBuilder() - Method in class ch.usi.si.seart.treesitter.Query
-
Obtain a new
Builderinitialized with the current query settings. - toBuilder() - Method in class ch.usi.si.seart.treesitter.Range
-
Obtain a new
Range.Builderinitialized with the current range's attributes. - TOML - ch.usi.si.seart.treesitter.Language
-
TOML: Tom's Obvious Minimal Language.
- toString() - Method in class ch.usi.si.seart.treesitter.Capture
- 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.OffsetTreeCursor
- toString() - Method in class ch.usi.si.seart.treesitter.Pattern
- 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.Predicate
- toString() - Method in class ch.usi.si.seart.treesitter.Query
- 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.Symbol
- 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).
- TreeSitter - Class in ch.usi.si.seart.treesitter.version
-
Utility used for obtaining the current version of the
tree-sitterAPI. - TreeSitter() - Constructor for class ch.usi.si.seart.treesitter.version.TreeSitter
- 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.
- TWIG - ch.usi.si.seart.treesitter.Language
-
Twig template language.
- TYPESCRIPT - ch.usi.si.seart.treesitter.Language
-
TypeScript programming language.
V
- validate(Language) - Static method in enum ch.usi.si.seart.treesitter.Language
-
Validates an enum value to ensure it is not null and has a valid (nonzero) identifier.
- valueOf(String) - Static method in enum ch.usi.si.seart.treesitter.Language
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.usi.si.seart.treesitter.Predicate.Step.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.usi.si.seart.treesitter.Quantifier
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.usi.si.seart.treesitter.Symbol.Type
-
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.
- values() - Static method in enum ch.usi.si.seart.treesitter.Predicate.Step.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum ch.usi.si.seart.treesitter.Quantifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum ch.usi.si.seart.treesitter.Symbol.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VERILOG - ch.usi.si.seart.treesitter.Language
-
Verilog hardware description language.
- Version - Class in ch.usi.si.seart.treesitter.version
-
Utility used for obtaining the current version of the
java-tree-sittercodebase. - Version() - Constructor for class ch.usi.si.seart.treesitter.version.Version
W
- walk() - Method in class ch.usi.si.seart.treesitter.Node
-
Create a new
TreeCursorstarting from this node. - walk(Query) - Method in class ch.usi.si.seart.treesitter.Node
-
Create a new
QueryCursorstarting from this node.
X
- XML - ch.usi.si.seart.treesitter.Language
-
XML: Extensible Markup Language.
- 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
Z
- ZERO - ch.usi.si.seart.treesitter.Quantifier
-
The capture will not match any nodes, as said capture is not present in a specific pattern.
- ZERO_OR_MORE - ch.usi.si.seart.treesitter.Quantifier
-
The capture will match any number of nodes.
- ZERO_OR_ONE - ch.usi.si.seart.treesitter.Quantifier
-
The capture will match at most one node.
- ZIG - ch.usi.si.seart.treesitter.Language
-
Zig programming language.
All Classes All Packages