java.lang.Object
java.lang.Record
org.kink_lang.kink.internal.callstack.CallStackSlice
- Record Components:
callStackElements- call stack elements of the slice.tailTraceRingBuffers- trace ring buffers of the slice.lnums- SeeLnums.
public record CallStackSlice(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums)
extends Record
Slice of call stack.
-
Constructor Summary
ConstructorsConstructorDescriptionCallStackSlice(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums) Constructs a slice. -
Method Summary
Modifier and TypeMethodDescriptionCse[]Returns the value of thecallStackElementsrecord component.intReturns the total usage of the dataStack by the slice.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.long[]lnums()Returns the value of thelnumsrecord component.intsize()Returns the size of the slice.Returns the value of thetailTraceRingBuffersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallStackSlice
public CallStackSlice(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums) Constructs a slice.- Parameters:
callStackElements- call stack elements of the slice.tailTraceRingBuffers- trace ring buffers of the slice.lnums- SeeLnums.
-
-
Method Details
-
size
public int size()Returns the size of the slice.- Returns:
- the size of the slice.
-
dataStackUsage
public int dataStackUsage()Returns the total usage of the dataStack by the slice.- Returns:
- the total usage of the dataStack by the slice.
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
callStackElements
Returns the value of thecallStackElementsrecord component.- Returns:
- the value of the
callStackElementsrecord component
-
tailTraceRingBuffers
Returns the value of thetailTraceRingBuffersrecord component.- Returns:
- the value of the
tailTraceRingBuffersrecord component
-
lnums
public long[] lnums()Returns the value of thelnumsrecord component.- Returns:
- the value of the
lnumsrecord component
-