Record Class Ir.Anchor
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Anchor
- Enclosing class:
Ir
public static record Ir.Anchor(SourceSpan span, boolean initially, Ir.Exp body)
extends Record
implements Ir.Exp
An anchor, rich:
initially p, at the birth of the context, or
finally p, at its death.-
Constructor Summary
ConstructorsConstructorDescriptionAnchor(SourceSpan span, boolean initially, Ir.Exp body) Creates an instance of aAnchorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinitiallyrecord component.booleanisRich()span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Anchor
Creates an instance of aAnchorrecord class.- Parameters:
span- the value for thespanrecord componentinitially- the value for theinitiallyrecord componentbody- the value for thebodyrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
span
Returns the value of thespanrecord component. -
initially
Returns the value of theinitiallyrecord component.- Returns:
- the value of the
initiallyrecord component
-
body
-