Record Class ConstructVerdict.Counterexample
java.lang.Object
java.lang.Record
org.ek9lang.compiler.symbolic.ConstructVerdict.Counterexample
- Record Components:
obligation- a short label for the obligation class refuted (e.g."DIV_BY_ZERO")witness- the witnessing input asname=value(e.g."count=0")line- the source line of the obligation site (the division / call / construction), so a consumer can attach the finding to that line — the IDE Flow pane's merge-by-line and the red gutter dot both key off this
- Enclosing class:
ConstructVerdict
-
Constructor Summary
ConstructorsConstructorDescriptionCounterexample(String obligation, String witness, int line) Creates an instance of aCounterexamplerecord 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.final StringtoString()Returns a string representation of this record class.witness()Returns the value of thewitnessrecord component.
-
Constructor Details
-
Counterexample
Creates an instance of aCounterexamplerecord class.- Parameters:
obligation- the value for theobligationrecord componentwitness- the value for thewitnessrecord componentline- the value for thelinerecord 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
-
witness
-
line
-