Package io.github.treesitter.jtreesitter
Class QueryPredicate
java.lang.Object
io.github.treesitter.jtreesitter.QueryPredicate
- Direct Known Subclasses:
QueryPredicate.AnyOf
,QueryPredicate.Eq
,QueryPredicate.Match
@NullMarked
public sealed class QueryPredicate
extends Object
permits QueryPredicate.AnyOf, QueryPredicate.Eq, QueryPredicate.Match
A query predicate that associates conditions (or arbitrary metadata) with a pattern.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Handles the following predicates:
#any-of?
,#not-any-of?
static final class
Handles the following predicates:
#eq?
,#not-eq?
,#any-eq?
,#any-not-eq?
static final class
Handles the following predicates:
#match?
,#not-match?
,#any-match?
,#any-not-match?
-
Method Summary
-
Method Details
-
getName
Get the name of the predicate. -
getArgs
Get the arguments given to the predicate. -
toString
-