Record Class Ir.Card
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Card
- Record Components:
span- where it islow- the lower boundhigh- the upper bound, orUnbounded
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
A cardinality,
low..high, or low..*.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCard(SourceSpan span, int low, int high) Creates an instance of aCardrecord 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.inthigh()Returns the value of thehighrecord component.booleanisAny()booleanintlow()Returns the value of thelowrecord component.span()Returns the value of thespanrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
Unbounded
-
-
Constructor Details
-
Method Details
-
isUnbounded
-
isAny
- Returns:
- whether this is
0..*
-
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
-
low
-
high
-