Record Class StatementOwnedCloseables.OwnedTemporaries
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.StatementOwnedCloseables.OwnedTemporaries
- Record Components:
declarations- the owner variables' null-initialising declarationsinstructions- the instructions with each temporary stored into its ownerclosings- one per owner, in the order the temporaries are made
- Enclosing class:
StatementOwnedCloseables
public static record StatementOwnedCloseables.OwnedTemporaries(List<IRInstr> declarations, List<IRInstr> instructions, List<ResourceCloser.Closing> closings)
extends Record
What
StatementOwnedCloseables.own(List, DebugInfo) found.-
Constructor Summary
ConstructorsConstructorDescriptionOwnedTemporaries(List<IRInstr> declarations, List<IRInstr> instructions, List<ResourceCloser.Closing> closings) Creates an instance of aOwnedTemporariesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclosings()Returns the value of theclosingsrecord component.Returns the value of thedeclarationsrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OwnedTemporaries
public OwnedTemporaries(List<IRInstr> declarations, List<IRInstr> instructions, List<ResourceCloser.Closing> closings) Creates an instance of aOwnedTemporariesrecord class.- Parameters:
declarations- the value for thedeclarationsrecord componentinstructions- the value for theinstructionsrecord componentclosings- the value for theclosingsrecord 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). -
declarations
Returns the value of thedeclarationsrecord component.- Returns:
- the value of the
declarationsrecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
closings
-