Record Class Ir.RootBlock
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.RootBlock
- Record Components:
span- the blockconstraints- the constraints
- All Implemented Interfaces:
Ir.Element, Ir.Node
- Enclosing class:
Ir
public static record Ir.RootBlock(SourceSpan span, List<Ir.Constraint> constraints)
extends Record
implements Ir.Element
Constraints directly under the root,
root { [ exp ] }, as
chocosolver's AstPrinter prints a model of its Java API that
has them; Clafer has none.-
Constructor Summary
ConstructorsConstructorDescriptionRootBlock(SourceSpan span, List<Ir.Constraint> constraints) Creates an instance of aRootBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RootBlock
Creates an instance of aRootBlockrecord class.- Parameters:
span- the value for thespanrecord componentconstraints- the value for theconstraintsrecord 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
-
constraints
Returns the value of theconstraintsrecord component.- Returns:
- the value of the
constraintsrecord component
-