Record Class Location
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
java.lang.Record
dev.gecode.iris.Location
- Record Components:
origin- the name of the source, or null if it has noneline- the line, or null if not reportedcolumn- the column in bytes, or null if not reported
- All Implemented Interfaces:
Serializable
public record Location(@Nullable String origin, @Nullable Integer line, @Nullable Integer column)
extends Record
implements Serializable
A position in a reader spec or an input.
Lines and columns count from 1. A part that an error does not report is null: reader-spec errors usually have a line and no column, and some errors name only the origin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integercolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Integerline()Returns the value of thelinerecord component.@Nullable Stringorigin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Location
-
-
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). -
origin
-
line
-
column
-