Record Class ErrorPosition
java.lang.Object
java.lang.Record
liquidjava.diagnostics.ErrorPosition
-
Constructor Summary
ConstructorsConstructorDescriptionErrorPosition(int lineStart, int colStart, int lineEnd, int colEnd) Creates an instance of aErrorPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolEnd()Returns the value of thecolEndrecord component.intcolStart()Returns the value of thecolStartrecord component.final booleanIndicates whether some other object is "equal to" this one.static ErrorPositionfromSpoonPosition(spoon.reflect.cu.SourcePosition pos) final inthashCode()Returns a hash code value for this object.intlineEnd()Returns the value of thelineEndrecord component.intReturns the value of thelineStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorPosition
public ErrorPosition(int lineStart, int colStart, int lineEnd, int colEnd) Creates an instance of aErrorPositionrecord class.- Parameters:
lineStart- the value for thelineStartrecord componentcolStart- the value for thecolStartrecord componentlineEnd- the value for thelineEndrecord componentcolEnd- the value for thecolEndrecord component
-
-
Method Details
-
fromSpoonPosition
-
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. -
lineStart
public int lineStart()Returns the value of thelineStartrecord component.- Returns:
- the value of the
lineStartrecord component
-
colStart
public int colStart()Returns the value of thecolStartrecord component.- Returns:
- the value of the
colStartrecord component
-
lineEnd
public int lineEnd()Returns the value of thelineEndrecord component.- Returns:
- the value of the
lineEndrecord component
-
colEnd
public int colEnd()Returns the value of thecolEndrecord component.- Returns:
- the value of the
colEndrecord component
-