Record Class SourceSpan
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.sourcepos.SourceSpan
-
Constructor Summary
ConstructorsConstructorDescriptionSourceSpan(SourcePos start, SourcePos end) Creates an instance of aSourceSpanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceSpanencompassing(SourceSpan a, SourceSpan b) end()Returns the value of theendrecord component.intintendLine()intfinal booleanIndicates whether some other object is "equal to" this one.fileName()static SourceSpanfinal inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.intintintfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceSpan
-
-
Method Details
-
fileName
-
startLine
public int startLine() -
startColumn
public int startColumn() -
startOffset
public int startOffset() -
endLine
public int endLine() -
endColumn
public int endColumn() -
endOffset
public int endOffset() -
from
-
encompassing
-
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). -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-