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 aCallProcessingDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallContextrecord component.final booleanIndicates whether some other object is "equal to" this one.static CallProcessingDetailsforExpression(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for expression context (minimal memory management).static CallProcessingDetailsforStatement(EK9Parser.CallContext callContext, VariableDetails variableDetails) Create processing details for statement context (full memory management).final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisStatementContextrecord component.Get the result variable for this call.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableDetailsrecord component.
-
Constructor Details
-
CallProcessingDetails
public CallProcessingDetails(EK9Parser.CallContext callContext, VariableDetails variableDetails, boolean isStatementContext) Creates an instance of aCallProcessingDetailsrecord class.- Parameters:
callContext- the value for thecallContextrecord componentvariableDetails- the value for thevariableDetailsrecord componentisStatementContext- the value for theisStatementContextrecord 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). -
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 thecomparemethod from their corresponding wrapper classes. -
callContext
Returns the value of thecallContextrecord component.- Returns:
- the value of the
callContextrecord component
-
variableDetails
Returns the value of thevariableDetailsrecord component.- Returns:
- the value of the
variableDetailsrecord component
-
isStatementContext
public boolean isStatementContext()Returns the value of theisStatementContextrecord component.- Returns:
- the value of the
isStatementContextrecord component
-