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 aQuestionDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasicDetails
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 thenullCaseEvaluation
record component.Returns the value of thenullCheckCondition
record component.Returns the value of theoperandEvaluation
record component.result()
Returns the value of theresult
record component.Returns the value of thesetCaseEvaluation
record component.final String
toString()
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 aQuestionDetails
record class.- Parameters:
result
- the value for theresult
record componentoperandEvaluation
- the value for theoperandEvaluation
record componentnullCheckCondition
- the value for thenullCheckCondition
record componentnullCaseEvaluation
- the value for thenullCaseEvaluation
record componentsetCaseEvaluation
- the value for thesetCaseEvaluation
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
-
operandEvaluation
Returns the value of theoperandEvaluation
record component.- Returns:
- the value of the
operandEvaluation
record component
-
nullCheckCondition
Returns the value of thenullCheckCondition
record component.- Returns:
- the value of the
nullCheckCondition
record component
-
nullCaseEvaluation
Returns the value of thenullCaseEvaluation
record component.- Returns:
- the value of the
nullCaseEvaluation
record component
-
setCaseEvaluation
Returns the value of thesetCaseEvaluation
record component.- Returns:
- the value of the
setCaseEvaluation
record component
-
basicDetails
Returns the value of thebasicDetails
record component.- Returns:
- the value of the
basicDetails
record component
-