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
Constructors -
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.intReturns the value of thenewEndByterecord component.Returns the value of thenewEndPointrecord component.intReturns the value of theoldEndByterecord component.Returns the value of theoldEndPointrecord component.intReturns the value of thestartByterecord component.Returns the value of thestartPointrecord 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 aInputEditrecord class.- Parameters:
startByte- the value for thestartByterecord componentoldEndByte- the value for theoldEndByterecord componentnewEndByte- the value for thenewEndByterecord componentstartPoint- the value for thestartPointrecord componentoldEndPoint- the value for theoldEndPointrecord componentnewEndPoint- the value for thenewEndPointrecord 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 thecomparemethod from their corresponding wrapper classes. -
startByte
Returns the value of thestartByterecord component.- Returns:
- the value of the
startByterecord component
-
oldEndByte
Returns the value of theoldEndByterecord component.- Returns:
- the value of the
oldEndByterecord component
-
newEndByte
Returns the value of thenewEndByterecord component.- Returns:
- the value of the
newEndByterecord component
-
startPoint
Returns the value of thestartPointrecord component.- Returns:
- the value of the
startPointrecord component
-
oldEndPoint
Returns the value of theoldEndPointrecord component.- Returns:
- the value of the
oldEndPointrecord component
-
newEndPoint
Returns the value of thenewEndPointrecord component.- Returns:
- the value of the
newEndPointrecord component
-