Record Class SourcePos
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.sourcepos.SourcePos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.intoffset()Returns the value of theoffsetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SourcePos
Creates an instance of aSourcePosrecord class.- Parameters:
fileName- the value for thefileNamerecord componentline- the value for thelinerecord componentcolumn- the value for thecolumnrecord componentoffset- the value for theoffsetrecord 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. -
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-