Record Class AbstractAssertExprGenerator.AssertBodyResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.AbstractAssertExprGenerator.AssertBodyResult
- Record Components:
bodyInstructions- The IR instructions for the expression bodyscopeId- The scope identifier for the expression evaluationexpressionText- The truncated expression text for error messages
- Enclosing class:
AbstractAssertExprGenerator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssertBodyResult(List<IRInstr> bodyInstructions, String scopeId, String expressionText) Creates an instance of aAssertBodyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyInstructionsrecord 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.scopeId()Returns the value of thescopeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssertBodyResult
Creates an instance of aAssertBodyResultrecord class.- Parameters:
bodyInstructions- the value for thebodyInstructionsrecord componentscopeId- the value for thescopeIdrecord componentexpressionText- the value for theexpressionTextrecord 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). -
bodyInstructions
Returns the value of thebodyInstructionsrecord component.- Returns:
- the value of the
bodyInstructionsrecord component
-
scopeId
-
expressionText
Returns the value of theexpressionTextrecord component.- Returns:
- the value of the
expressionTextrecord component
-