Record Class ClassLineTable
java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.jvm.debug.ClassLineTable
The debug-time reader of one class's EK9 source lines: the source it was compiled from (
SourceFile, the
.ek9 name) and every line any of its methods has code on (LineNumberTable). The EK9 SMAP is an
identity line map, so those are EK9 lines - exactly the lines a breakpoint can bind to, known before the class is
loaded. Read from the bytes, like MethodKindIndex, because a debugger asking JDI only learns a class's lines
once the debuggee loads it.-
Constructor Summary
ConstructorsConstructorDescriptionClassLineTable(String sourceFile, NavigableSet<Integer> lines) Creates an instance of aClassLineTablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ClassLineTablefromClassBytes(byte[] classBytes) ReadclassBytes; the source is empty when the class records none.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
fromClassBytes
ReadclassBytes; the source is empty when the class records none. -
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). -
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-