Record Class ConstructVerdict.ProvedSafe
java.lang.Object
java.lang.Record
org.ek9lang.compiler.symbolic.ConstructVerdict.ProvedSafe
- Record Components:
obligation- the obligation class discharged (e.g."DIV_BY_ZERO")line- the source line of the discharged sitereason- why it is safe (e.g."divisor is the non-zero literal 100","require guarantees people <> 0")
- Enclosing class:
ConstructVerdict
-
Constructor Summary
ConstructorsConstructorDescriptionProvedSafe(String obligation, int line, String reason) Creates an instance of aProvedSaferecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.Returns the value of theobligationrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProvedSafe
Creates an instance of aProvedSaferecord class.- Parameters:
obligation- the value for theobligationrecord componentline- the value for thelinerecord componentreason- the value for thereasonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
obligation
Returns the value of theobligationrecord component.- Returns:
- the value of the
obligationrecord component
-
line
-
reason
-