Query
A class that represents a set of patterns which match nodes in a syntax tree.
NOTE: If you're targeting Android SDK level < 33, you must use or close the instance to free up resources.
Throws
If any error occurred while creating the query.
A class that represents a set of patterns which match nodes in a syntax tree.
Throws
If any error occurred while creating the query.
A class that represents a set of patterns which match nodes in a syntax tree.
Throws
If any error occurred while creating the query.
A class that represents a set of patterns which match nodes in a syntax tree.
Throws
If any error occurred while creating the query.
Constructors
Create a new query from a particular language and a string containing one or more S-expression patterns.
Create a new query from a particular language and a string containing one or more S-expression patterns.
Create a new query from a particular language and a string containing one or more S-expression patterns.
Properties
The number of captures in the query.
The number of captures in the query.
The number of captures in the query.
The number of captures in the query.
The capture names used in the query.
The capture names used in the query.
The capture names used in the query.
The capture names used in the query.
The number of patterns in the query.
The number of patterns in the query.
The number of patterns in the query.
The number of patterns in the query.
The string literals used in the query.
The string literals used in the query.
The string literals used in the query.
The string literals used in the query.
Functions
Get the property assertions for the given pattern index.
Get the property assertions for the given pattern index.
Disable a certain capture within a query.
Disable a certain capture within a query.
Disable a certain capture within a query.
Disable a certain capture within a query.
Disable a certain pattern within a query.
Disable a certain pattern within a query.
Disable a certain pattern within a query.
Disable a certain pattern within a query.
Get the byte offset where the given pattern ends in the query's source.
Get the byte offset where the given pattern ends in the query's source.
Get the byte offset where the given pattern ends in the query's source.
Get the byte offset where the given pattern ends in the query's source.
Execute the query on the given Node.
Execute the query on the given Node.
Execute the query on the given Node.
Execute the query on the given Node.
Check if a pattern is guaranteed to match once a given byte offset is reached.
Check if a pattern is guaranteed to match once a given byte offset is reached.
Check if a pattern is guaranteed to match once a given byte offset is reached.
Check if a pattern is guaranteed to match once a given byte offset is reached.
Check if the pattern with the given index is "non-local".
Check if the pattern with the given index is "non-local".
Check if the pattern with the given index is "non-local".
Check if the pattern with the given index is "non-local".
Check if the pattern with the given index has a single root node.
Check if the pattern with the given index has a single root node.
Check if the pattern with the given index has a single root node.
Check if the pattern with the given index has a single root node.
Get the property settings for the given pattern index.
Get the property settings for the given pattern index.
Get the property settings for the given pattern index.
Get the byte offset where the given pattern starts in the query's source.
Get the byte offset where the given pattern starts in the query's source.
Get the byte offset where the given pattern starts in the query's source.
Get the byte offset where the given pattern starts in the query's source.