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 aLogicalDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionalEvaluation
record component.Returns the value of thedebugInfo
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theleftEvaluation
record component.result()
Returns the value of theresult
record component.Returns the value of theresultEvaluation
record component.Returns the value of therightEvaluation
record component.scopeId()
Returns the value of thescopeId
record component.final String
toString()
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 aLogicalDetails
record class.- Parameters:
result
- the value for theresult
record componentleftEvaluation
- the value for theleftEvaluation
record componentconditionalEvaluation
- the value for theconditionalEvaluation
record componentrightEvaluation
- the value for therightEvaluation
record componentresultEvaluation
- the value for theresultEvaluation
record componentdebugInfo
- the value for thedebugInfo
record componentscopeId
- the value for thescopeId
record 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 theresult
record component.- Returns:
- the value of the
result
record component
-
leftEvaluation
Returns the value of theleftEvaluation
record component.- Returns:
- the value of the
leftEvaluation
record component
-
conditionalEvaluation
Returns the value of theconditionalEvaluation
record component.- Returns:
- the value of the
conditionalEvaluation
record component
-
rightEvaluation
Returns the value of therightEvaluation
record component.- Returns:
- the value of the
rightEvaluation
record component
-
resultEvaluation
Returns the value of theresultEvaluation
record component.- Returns:
- the value of the
resultEvaluation
record component
-
debugInfo
Returns the value of thedebugInfo
record component.- Returns:
- the value of the
debugInfo
record component
-
scopeId
Returns the value of thescopeId
record component.- Returns:
- the value of the
scopeId
record component
-