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 QueryPredicateArg
QueryPredicateArg.Capture, QueryPredicateArg.Literal -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Literal
Creates an instance of aLiteralrecord class.- Parameters:
value- the value for thevaluerecord 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 thevaluerecord component.- Specified by:
valuein interfaceQueryPredicateArg- Returns:
- the value of the
valuerecord component
-