Package io.github.treesitter.jtreesitter
Record Class QueryPredicateArg.Literal
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.QueryPredicateArg.Literal
- All Implemented Interfaces:
QueryPredicateArg
- Enclosing interface:
QueryPredicateArg
public static record QueryPredicateArg.Literal(String value)
extends Record
implements QueryPredicateArg
A literal string argument (
"value"
).-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.treesitter.jtreesitter.QueryPredicateArg
QueryPredicateArg.Capture, QueryPredicateArg.Literal
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Literal
Creates an instance of aLiteral
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
value
Returns the value of thevalue
record component.- Specified by:
value
in interfaceQueryPredicateArg
- Returns:
- the value of the
value
record component
-