Record Class Ir.Assertion
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Assertion
- Record Components:
span- the assertionexp- the formulaorigin- the rich construct it was lowered from
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
public static record Ir.Assertion(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin)
extends Record
implements Ir.Node
An assertion,
assert [ exp ].-
Constructor Summary
ConstructorsConstructorDescriptionAssertion(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin) Creates an instance of aAssertionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exp()Returns the value of theexprecord component.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Assertion
-
-
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). -
span
-
exp
-
origin
-