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 aLogicalDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasicDetailsrecord component.Returns the value of theconditionalEvaluationrecord 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.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, BasicDetails basicDetails) 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 componentbasicDetails- the value for thebasicDetailsrecord 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
-
basicDetails
Returns the value of thebasicDetailsrecord component.- Returns:
- the value of the
basicDetailsrecord component
-