Package io.github.treesitter.jtreesitter
Record Class InputEdit
java.lang.Object
java.lang.Record
io.github.treesitter.jtreesitter.InputEdit
@NullMarked
public record InputEdit(int startByte, int oldEndByte, int newEndByte, Point startPoint, Point oldEndPoint, Point newEndPoint)
extends Record
An edit to a text document.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenewEndByte
record component.Returns the value of thenewEndPoint
record component.int
Returns the value of theoldEndByte
record component.Returns the value of theoldEndPoint
record component.int
Returns the value of thestartByte
record component.Returns the value of thestartPoint
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
InputEdit
public InputEdit(@Unsigned int startByte, @Unsigned int oldEndByte, @Unsigned int newEndByte, Point startPoint, Point oldEndPoint, Point newEndPoint) Creates an instance of aInputEdit
record class.- Parameters:
startByte
- the value for thestartByte
record componentoldEndByte
- the value for theoldEndByte
record componentnewEndByte
- the value for thenewEndByte
record componentstartPoint
- the value for thestartPoint
record componentoldEndPoint
- the value for theoldEndPoint
record componentnewEndPoint
- the value for thenewEndPoint
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
startByte
Returns the value of thestartByte
record component.- Returns:
- the value of the
startByte
record component
-
oldEndByte
Returns the value of theoldEndByte
record component.- Returns:
- the value of the
oldEndByte
record component
-
newEndByte
Returns the value of thenewEndByte
record component.- Returns:
- the value of the
newEndByte
record component
-
startPoint
Returns the value of thestartPoint
record component.- Returns:
- the value of the
startPoint
record component
-
oldEndPoint
Returns the value of theoldEndPoint
record component.- Returns:
- the value of the
oldEndPoint
record component
-
newEndPoint
Returns the value of thenewEndPoint
record component.- Returns:
- the value of the
newEndPoint
record component
-