java.lang.Object
java.lang.Record
org.aya.core.repr.CodeShape.TermShape.TeleRef
- All Implemented Interfaces:
CodeShape.TermShape
- Enclosing interface:
CodeShape.TermShape
public static record CodeShape.TermShape.TeleRef(int superLevel, int nth)
extends Record
implements CodeShape.TermShape
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.repr.CodeShape.TermShape
CodeShape.TermShape.Any, CodeShape.TermShape.Call, CodeShape.TermShape.Sort, CodeShape.TermShape.TeleRef -
Constructor Summary
ConstructorsConstructorDescriptionTeleRef(int superLevel, int nth) Creates an instance of aTeleRefrecord 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.intnth()Returns the value of thenthrecord component.intReturns the value of thesuperLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TeleRef
public TeleRef(int superLevel, int nth) Creates an instance of aTeleRefrecord class.- Parameters:
superLevel- the value for thesuperLevelrecord componentnth- the value for thenthrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
superLevel
public int superLevel()Returns the value of thesuperLevelrecord component.- Returns:
- the value of the
superLevelrecord component
-
nth
public int nth()Returns the value of thenthrecord component.- Returns:
- the value of the
nthrecord component
-