Record Class LoopContextData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.jvm.LoopContextData
public record LoopContextData(org.objectweb.asm.Label continueLabel, org.objectweb.asm.Label exitLabel)
extends Record
Loop-specific context data for bytecode generation.
Stored in BytecodeStackFrame when frameType is LOOP.
EK9 loops have no break/continue statements - they execute to completion. This context provides labels for:
- Next iteration (continueLabel) - where nested control flow jumps after completion
- Natural loop exit (exitLabel) - where loop exits when condition fails
-
Constructor Summary
ConstructorsConstructorDescriptionLoopContextData(org.objectweb.asm.Label continueLabel, org.objectweb.asm.Label exitLabel) Creates an instance of aLoopContextDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.LabelReturns the value of thecontinueLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.org.objectweb.asm.LabelReturns the value of theexitLabelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoopContextData
public LoopContextData(org.objectweb.asm.Label continueLabel, org.objectweb.asm.Label exitLabel) Creates an instance of aLoopContextDatarecord class.- Parameters:
continueLabel- the value for thecontinueLabelrecord componentexitLabel- the value for theexitLabelrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
continueLabel
public org.objectweb.asm.Label continueLabel()Returns the value of thecontinueLabelrecord component.- Returns:
- the value of the
continueLabelrecord component
-
exitLabel
public org.objectweb.asm.Label exitLabel()Returns the value of theexitLabelrecord component.- Returns:
- the value of the
exitLabelrecord component
-