Class QueryCursor.Options
java.lang.Object
io.github.treesitter.jtreesitter.QueryCursor.Options
- Enclosing class:
QueryCursor
A class representing the query cursor options.
- Since:
- 0.25.0
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(@Nullable Predicate<QueryCursor.State> progressCallback, @Nullable BiPredicate<QueryPredicate, QueryMatch> predicateCallback) Options(BiPredicate<QueryPredicate, QueryMatch> predicateCallback) Options(Predicate<QueryCursor.State> progressCallback) -
Method Summary
-
Constructor Details
-
Options
public Options(@Nullable Predicate<QueryCursor.State> progressCallback, @Nullable BiPredicate<QueryPredicate, QueryMatch> predicateCallback) - Parameters:
progressCallback- Progress handler. Returntrueto cancel query execution,falseto continue query execution.predicateCallback- Custom predicate handler.
-
Options
- Parameters:
progressCallback- Progress handler. Returntrueto cancel query execution,falseto continue query execution.
-
Options
- Parameters:
predicateCallback- Custom predicate handler.
-