Record Class Ir.QuantifiedSet
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.QuantifiedSet
- Enclosing class:
Ir
public static record Ir.QuantifiedSet(SourceSpan span, Ir.Quantifier quantifier, Ir.Exp set)
extends Record
implements Ir.Exp
A quantifier over a set, without variables:
some x, no x,
lone x, one x, all x. It is a formula on the set
as a whole, e.g., some x holds if x has an element, which needs
no count.-
Constructor Summary
ConstructorsConstructorDescriptionQuantifiedSet(SourceSpan span, Ir.Quantifier quantifier, Ir.Exp set) Creates an instance of aQuantifiedSetrecord 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.Returns the value of thequantifierrecord component.set()Returns the value of thesetrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QuantifiedSet
Creates an instance of aQuantifiedSetrecord class.- Parameters:
span- the value for thespanrecord componentquantifier- the value for thequantifierrecord componentset- the value for thesetrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
span
Returns the value of thespanrecord component. -
quantifier
Returns the value of thequantifierrecord component.- Returns:
- the value of the
quantifierrecord component
-
set
-