Record Class Ir.Decl
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Decl
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
-
Constructor Summary
ConstructorsConstructorDescriptionDecl(SourceSpan span, boolean disjoint, List<Ir.Name> locals, Ir.Exp set) Creates an instance of aDeclrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandisjoint()Returns the value of thedisjointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locals()Returns the value of thelocalsrecord component.set()Returns the value of thesetrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decl
Creates an instance of aDeclrecord class.- Parameters:
span- the value for thespanrecord componentdisjoint- the value for thedisjointrecord componentlocals- the value for thelocalsrecord componentset- the value for thesetrecord 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. 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. -
disjoint
Returns the value of thedisjointrecord component.- Returns:
- the value of the
disjointrecord component
-
locals
-
set
-