Record Class AbstractSyntheticGenerator.ScopeSetup
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.synthesis.AbstractSyntheticGenerator.ScopeSetup
- Record Components:
ctx- The synthesis scope contextinstructions- The instruction list with SCOPE_ENTER and REFERENCE
- Enclosing class:
AbstractSyntheticGenerator
protected static record AbstractSyntheticGenerator.ScopeSetup(SynthesisScope ctx, List<IRInstr> instructions)
extends Record
Record bundling scope context with initialized instruction list.
Used by AbstractSyntheticGenerator.initializeScope(MethodSymbol, String, String, String) to return both the context and
the initial instructions for scope entry.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScopeSetup(SynthesisScope ctx, List<IRInstr> instructions) Creates an instance of aScopeSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionctx()Returns the value of thectxrecord 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
-
ScopeSetup
Creates an instance of aScopeSetuprecord class.- Parameters:
ctx- the value for thectxrecord componentinstructions- the value for theinstructionsrecord 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). -
ctx
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-