Record Class CompositeInstr.NestedList
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.instructions.CompositeInstr.NestedList
- Record Components:
role- the list's name, as the IR text labels it (e.g.body_evaluation)instructions- the instructions (never null)activation- how often it runs per execution of the composite
- Enclosing interface:
CompositeInstr
public static record CompositeInstr.NestedList(String role, List<IRInstr> instructions, CompositeInstr.Activation activation)
extends Record
One nested list.
-
Constructor Summary
ConstructorsConstructorDescriptionNestedList(String role, List<IRInstr> instructions, CompositeInstr.Activation activation) Creates an instance of aNestedListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivationrecord 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 theinstructionsrecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NestedList
Creates an instance of aNestedListrecord class.- Parameters:
role- the value for therolerecord componentinstructions- the value for theinstructionsrecord componentactivation- the value for theactivationrecord 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). -
role
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
activation
Returns the value of theactivationrecord component.- Returns:
- the value of the
activationrecord component
-