Record Class LogicalDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.LogicalDetails
public record LogicalDetails(String result, OperandEvaluation leftEvaluation, ConditionalEvaluation conditionalEvaluation, OperandEvaluation rightEvaluation, OperandEvaluation resultEvaluation, DebugInfo debugInfo, String scopeId)
extends Record
Defines the necessary structure for processing logical operations line AND/OR/XOR.
STACK-BASED: scopeId extracted from stack context at Details creation time.
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalDetails(String result, OperandEvaluation leftEvaluation, ConditionalEvaluation conditionalEvaluation, OperandEvaluation rightEvaluation, OperandEvaluation resultEvaluation, DebugInfo debugInfo, String scopeId) Creates an instance of aLogicalDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionalEvaluationrecord component.Returns the value of thedebugInforecord 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 theleftEvaluationrecord component.result()Returns the value of theresultrecord component.Returns the value of theresultEvaluationrecord component.Returns the value of therightEvaluationrecord component.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogicalDetails
public LogicalDetails(String result, OperandEvaluation leftEvaluation, ConditionalEvaluation conditionalEvaluation, OperandEvaluation rightEvaluation, OperandEvaluation resultEvaluation, DebugInfo debugInfo, String scopeId) Creates an instance of aLogicalDetailsrecord class.- Parameters:
result- the value for theresultrecord componentleftEvaluation- the value for theleftEvaluationrecord componentconditionalEvaluation- the value for theconditionalEvaluationrecord componentrightEvaluation- the value for therightEvaluationrecord componentresultEvaluation- the value for theresultEvaluationrecord componentdebugInfo- the value for thedebugInforecord componentscopeId- the value for thescopeIdrecord 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). -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
leftEvaluation
Returns the value of theleftEvaluationrecord component.- Returns:
- the value of the
leftEvaluationrecord component
-
conditionalEvaluation
Returns the value of theconditionalEvaluationrecord component.- Returns:
- the value of the
conditionalEvaluationrecord component
-
rightEvaluation
Returns the value of therightEvaluationrecord component.- Returns:
- the value of the
rightEvaluationrecord component
-
resultEvaluation
Returns the value of theresultEvaluationrecord component.- Returns:
- the value of the
resultEvaluationrecord component
-
debugInfo
Returns the value of thedebugInforecord component.- Returns:
- the value of the
debugInforecord component
-
scopeId
Returns the value of thescopeIdrecord component.- Returns:
- the value of the
scopeIdrecord component
-