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.
Check if the query exceeded its maximum number of in-progress matches during its last execution.
Check if the query exceeded its maximum number of in-progress matches during its last execution.
Check if the query exceeded its maximum number of in-progress matches during its last execution.
Check if the query exceeded its maximum number of in-progress matches during its last execution.
The maximum number of in-progress matches.
The maximum number of in-progress matches.
The maximum number of in-progress matches.
The maximum number of in-progress matches.
The maximum start depth for the query.
The maximum start depth for the query.
The maximum start depth for the query.
The maximum start depth for 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 range of points in which the query will be executed.
The range of points in which the query will be executed.
The range of points in which the query will be executed.
The range of points in which the query will be executed.
The maximum duration in microseconds that query execution should be allowed to take before halting.
The maximum duration in microseconds that query execution should be allowed to take before halting.
The maximum duration in microseconds that query execution should be allowed to take before halting.
The maximum duration in microseconds that query execution should be allowed to take before halting.
Functions
Get the property assertions for the given pattern index.
Get the property assertions for the given pattern index.
Iterate over all the individual captures in the order that they appear.
Iterate over all the individual captures in the order that they appear.
Iterate over all the individual captures in the order that they appear.
Iterate over all the individual captures in the order that they appear.
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.
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.
Iterate over all the matches in the order that they were found.
Iterate over all the matches in the order that they were found.
Iterate over all the matches in the order that they were found.
Iterate over all the matches in the order that they were found.
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.