Record Class Ir.RelationOf
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.RelationOf
- Enclosing class:
Ir
public static record Ir.RelationOf(SourceSpan span, boolean isDref, Ir.Name clafer)
extends Record
implements Ir.Exp
dref(c) or parent(c), a relation of a clafer, as
chocosolver's printer writes it.-
Constructor Summary
ConstructorsConstructorDescriptionRelationOf(SourceSpan span, boolean isDref, Ir.Name clafer) Creates an instance of aRelationOfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclafer()Returns the value of theclaferrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisDref()Returns the value of theisDrefrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RelationOf
Creates an instance of aRelationOfrecord class.- Parameters:
span- the value for thespanrecord componentisDref- the value for theisDrefrecord componentclafer- the value for theclaferrecord 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. -
span
Returns the value of thespanrecord component. -
isDref
Returns the value of theisDrefrecord component.- Returns:
- the value of the
isDrefrecord component
-
clafer
-