Record Class ForRangePolymorphicInstr.ScopeMetadata
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.ForRangePolymorphicInstr.ScopeMetadata
- Record Components:
outerScopeId- Outer scope for guards (future use)loopScopeId- Loop control structure scopebodyScopeId- Per-iteration body execution scope
- Enclosing class:
ForRangePolymorphicInstr
public static record ForRangePolymorphicInstr.ScopeMetadata(String outerScopeId, String loopScopeId, String bodyScopeId)
extends Record
Scope identifiers for different parts of the loop structure.
Scope hierarchy: - Outer scope: Guards and loop setup - Loop scope: Whole loop control structure - Body scope: Per-iteration scope for body execution
-
Constructor Summary
ConstructorsConstructorDescriptionScopeMetadata(String outerScopeId, String loopScopeId, String bodyScopeId) Creates an instance of aScopeMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyScopeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theloopScopeIdrecord component.Returns the value of theouterScopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScopeMetadata
Creates an instance of aScopeMetadatarecord class.- Parameters:
outerScopeId- the value for theouterScopeIdrecord componentloopScopeId- the value for theloopScopeIdrecord componentbodyScopeId- the value for thebodyScopeIdrecord 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). -
outerScopeId
Returns the value of theouterScopeIdrecord component.- Returns:
- the value of the
outerScopeIdrecord component
-
loopScopeId
Returns the value of theloopScopeIdrecord component.- Returns:
- the value of the
loopScopeIdrecord component
-
bodyScopeId
Returns the value of thebodyScopeIdrecord component.- Returns:
- the value of the
bodyScopeIdrecord component
-