Record Class Ir.AbstractMultiplicity
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.AbstractMultiplicity
- Record Components:
span- where the bound iscard- the bound
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
public static record Ir.AbstractMultiplicity(SourceSpan span, Ir.Card card)
extends Record
implements Ir.Node
The written bound of a top-level abstract clafer, which counts all its
instances, rich:
abstract Tools 3..6. A nested abstract
multiplicity is core, the clafer's card.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMultiplicity(SourceSpan span, Ir.Card card) Creates an instance of aAbstractMultiplicityrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncard()Returns the value of thecardrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisRich()span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isRich
-
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
-
card
-