Record Class QueryMatch
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.QueryMatch
A match that corresponds to a certain pattern in a 
Query.- 
Constructor Summary
ConstructorsConstructorDescriptionQueryMatch(int patternIndex, List<QueryCapture> captures) Creates an instance of a QueryMatch record class. - 
Method Summary
Modifier and TypeMethodDescriptioncaptures()Returns the value of thecapturesrecord component.final booleanIndicates whether some other object is "equal to" this one.Find the nodes that are captured by the given capture name.final inthashCode()Returns a hash code value for this object.intReturns the value of thepatternIndexrecord component.toString()Returns a string representation of this record class. 
- 
Constructor Details
- 
QueryMatch
Creates an instance of a QueryMatch record class. 
 - 
 - 
Method Details
- 
findNodes
 - 
toString
 - 
hashCode
 - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. - 
patternIndex
Returns the value of thepatternIndexrecord component.- Returns:
 - the value of the 
patternIndexrecord component 
 - 
captures
Returns the value of thecapturesrecord component.- Returns:
 - the value of the 
capturesrecord component 
 
 -