Record Class GuardedScopeOrchestrator.OrchestratorContext
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.GuardedScopeOrchestrator.OrchestratorContext
- Record Components:
guardDetails- Guard variable details (may beGuardVariableDetails.none())returnDetails- Return variable details for expression form (may beReturnVariableDetails.none())outerScopeId- The outer scope ID where guard and return variables livedebugInfo- Debug information from the construct context
- Enclosing class:
GuardedScopeOrchestrator
public static record GuardedScopeOrchestrator.OrchestratorContext(GuardVariableDetails guardDetails, ReturnVariableDetails returnDetails, String outerScopeId, DebugInfo debugInfo)
extends Record
Context record passed to core generator lambdas.
Contains all state established during orchestration setup.
-
Constructor Summary
ConstructorsConstructorDescriptionOrchestratorContext(GuardVariableDetails guardDetails, ReturnVariableDetails returnDetails, String outerScopeId, DebugInfo debugInfo) Creates an instance of aOrchestratorContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguardDetailsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theouterScopeIdrecord component.Returns the value of thereturnDetailsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrchestratorContext
public OrchestratorContext(GuardVariableDetails guardDetails, ReturnVariableDetails returnDetails, String outerScopeId, DebugInfo debugInfo) Creates an instance of aOrchestratorContextrecord class.- Parameters:
guardDetails- the value for theguardDetailsrecord componentreturnDetails- the value for thereturnDetailsrecord componentouterScopeId- the value for theouterScopeIdrecord componentdebugInfo- the value for thedebugInforecord 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). -
guardDetails
Returns the value of theguardDetailsrecord component.- Returns:
- the value of the
guardDetailsrecord component
-
returnDetails
Returns the value of thereturnDetailsrecord component.- Returns:
- the value of the
returnDetailsrecord component
-
outerScopeId
Returns the value of theouterScopeIdrecord component.- Returns:
- the value of the
outerScopeIdrecord component
-
debugInfo
-