Record Class CallProcessingDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.calls.CallProcessingDetails
public record CallProcessingDetails(EK9Parser.CallContext callContext, VariableDetails variableDetails, boolean isStatementContext)
extends Record
Details required for processing function calls in a context-aware manner.
Provides necessary information for both statement and expression contexts.
-
Constructor Summary
ConstructorsConstructorDescriptionCallProcessingDetails
(EK9Parser.CallContext callContext, VariableDetails variableDetails, boolean isStatementContext) Creates an instance of aCallProcessingDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallContext
record component.final boolean
Indicates whether some other object is "equal to" this one.static CallProcessingDetails
forExpression
(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for expression context (minimal memory management).static CallProcessingDetails
forStatement
(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for statement context (full memory management).final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisStatementContext
record component.Get the result variable for this call.scopeId()
Get the scope ID for this call processing.final String
toString()
Returns a string representation of this record class.Returns the value of thevariableDetails
record component.
-
Constructor Details
-
CallProcessingDetails
public CallProcessingDetails(EK9Parser.CallContext callContext, VariableDetails variableDetails, boolean isStatementContext) Creates an instance of aCallProcessingDetails
record class.- Parameters:
callContext
- the value for thecallContext
record componentvariableDetails
- the value for thevariableDetails
record componentisStatementContext
- the value for theisStatementContext
record component
-
-
Method Details
-
forStatement
public static CallProcessingDetails forStatement(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for statement context (full memory management). -
forExpression
public static CallProcessingDetails forExpression(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for expression context (minimal memory management). -
scopeId
Get the scope ID for this call processing. -
resultVariable
Get the result variable for this call. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
callContext
Returns the value of thecallContext
record component.- Returns:
- the value of the
callContext
record component
-
variableDetails
Returns the value of thevariableDetails
record component.- Returns:
- the value of the
variableDetails
record component
-
isStatementContext
public boolean isStatementContext()Returns the value of theisStatementContext
record component.- Returns:
- the value of the
isStatementContext
record component
-