Record Class Ir.Constraint
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Constraint
- Record Components:
span- from the bracket to the bracketexp- the formulaorigin- the rich construct it was lowered from
- All Implemented Interfaces:
Ir.Element, Ir.Node
- Enclosing class:
Ir
public static record Ir.Constraint(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin)
extends Record
implements Ir.Element
A constraint,
[ exp ].-
Constructor Summary
ConstructorsConstructorDescriptionConstraint(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin) Creates an instance of aConstraintrecord 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
-
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
-