Record Class Ir.Origin
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Origin
- Record Components:
construct- the rich construct, e.g.,finalornever betweenposition- its position, if the compiler knew one
- Enclosing class:
Ir
Where a clafer or constraint of the core comes from, as
--record-provenance writes it: the rich construct that a
lowering made it from, and the position of that construct, e.g.,
// final, model.cfr:56:5. Not a node: it is read from a
comment, and no backend needs it.-
Constructor Summary
ConstructorsConstructorDescriptionOrigin(String construct, Optional<Ir.Position> position) Creates an instance of aOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstructrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Origin
-
-
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). -
construct
-
position
-