Record Class QuestionDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.QuestionDetails
public record QuestionDetails(String result, OperandEvaluation operandEvaluation, String nullCheckCondition, OperandEvaluation nullCaseEvaluation, OperandEvaluation setCaseEvaluation, BasicDetails basicDetails)
extends Record
Just holds the details relating to the 'is set' functionality.
While there is an operator '_isSet' (?), the same concept is used elsewhere.
For example in guard assignment statements and also in guarded if/for/while etc.
-
Constructor Summary
ConstructorsConstructorDescriptionQuestionDetails(String result, OperandEvaluation operandEvaluation, String nullCheckCondition, OperandEvaluation nullCaseEvaluation, OperandEvaluation setCaseEvaluation, BasicDetails basicDetails) Creates an instance of aQuestionDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasicDetailsrecord 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 thenullCaseEvaluationrecord component.Returns the value of thenullCheckConditionrecord component.Returns the value of theoperandEvaluationrecord component.result()Returns the value of theresultrecord component.Returns the value of thesetCaseEvaluationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QuestionDetails
public QuestionDetails(String result, OperandEvaluation operandEvaluation, String nullCheckCondition, OperandEvaluation nullCaseEvaluation, OperandEvaluation setCaseEvaluation, BasicDetails basicDetails) Creates an instance of aQuestionDetailsrecord class.- Parameters:
result- the value for theresultrecord componentoperandEvaluation- the value for theoperandEvaluationrecord componentnullCheckCondition- the value for thenullCheckConditionrecord componentnullCaseEvaluation- the value for thenullCaseEvaluationrecord componentsetCaseEvaluation- the value for thesetCaseEvaluationrecord 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
-
operandEvaluation
Returns the value of theoperandEvaluationrecord component.- Returns:
- the value of the
operandEvaluationrecord component
-
nullCheckCondition
Returns the value of thenullCheckConditionrecord component.- Returns:
- the value of the
nullCheckConditionrecord component
-
nullCaseEvaluation
Returns the value of thenullCaseEvaluationrecord component.- Returns:
- the value of the
nullCaseEvaluationrecord component
-
setCaseEvaluation
Returns the value of thesetCaseEvaluationrecord component.- Returns:
- the value of the
setCaseEvaluationrecord component
-
basicDetails
Returns the value of thebasicDetailsrecord component.- Returns:
- the value of the
basicDetailsrecord component
-