Record Class LogicalDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.LogicalDetails
public record LogicalDetails(String result, OperandEvaluation leftEvaluation, ConditionalEvaluation conditionalEvaluation, OperandEvaluation rightEvaluation, OperandEvaluation resultEvaluation, BasicDetails basicDetails)
extends Record
Defines the necessary structure for processing logical operations line AND/OR/XOR.
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalDetails
(String result, OperandEvaluation leftEvaluation, ConditionalEvaluation conditionalEvaluation, OperandEvaluation rightEvaluation, OperandEvaluation resultEvaluation, BasicDetails basicDetails) Creates an instance of aLogicalDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasicDetails
record component.Returns the value of theconditionalEvaluation
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.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, BasicDetails basicDetails) 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 componentbasicDetails
- the value for thebasicDetails
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
-
basicDetails
Returns the value of thebasicDetails
record component.- Returns:
- the value of the
basicDetails
record component
-