Record Class Ir.RefDecl
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.RefDecl
- Record Components:
span- from the arrow to the targetisSet- whether the reference is->, whose targets are distincttarget- the target: a clafer, orint,string,real,double,decimal
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
public static record Ir.RefDecl(SourceSpan span, boolean isSet, Ir.Name target)
extends Record
implements Ir.Node
A reference:
-> target, a set, or ->> target, a bag.-
Constructor Summary
ConstructorsConstructorDescriptionRefDecl(SourceSpan span, boolean isSet, Ir.Name target) Creates an instance of aRefDeclrecord 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.booleanisSet()Returns the value of theisSetrecord component.span()Returns the value of thespanrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RefDecl
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
span
-
isSet
-
target
-