Record Class ConditionStatementPrelude.Evaluated
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.ConditionStatementPrelude.Evaluated
- Record Components:
instructions- The probe, the evaluation and the primitive extraction.primitiveResult- The primitive Boolean the statement acts on.expressionText- The expression as written, truncated for the failure message.debugInfo- The statement's always-created debug info.
- Enclosing class:
ConditionStatementPrelude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugInforecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionTextrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.Returns the value of theprimitiveResultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Evaluated
Evaluated(List<IRInstr> instructions, String primitiveResult, String expressionText, DebugInfo debugInfo) Creates an instance of aEvaluatedrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentprimitiveResult- the value for theprimitiveResultrecord componentexpressionText- the value for theexpressionTextrecord componentdebugInfo- the value for thedebugInforecord 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). -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
primitiveResult
Returns the value of theprimitiveResultrecord component.- Returns:
- the value of the
primitiveResultrecord component
-
expressionText
Returns the value of theexpressionTextrecord component.- Returns:
- the value of the
expressionTextrecord component
-
debugInfo
-