Record Class LanguageMetadata.Version
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.LanguageMetadata.Version
- Enclosing class:
LanguageMetadata
The Semantic Version of the Language.
This version information may be used to signal if a given parser is incompatible with existing queries when upgrading between versions.
- Since:
- 0.25.0
-
Constructor Summary
ConstructorsConstructorDescriptionVersion(short major, short minor, short patch) Creates an instance of aVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.shortmajor()Returns the value of themajorrecord component.shortminor()Returns the value of theminorrecord component.shortpatch()Returns the value of thepatchrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Version
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
major
Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-