Module org.kink_lang.kink
Record Class NestedParam.Tuple
java.lang.Object
java.lang.Record
org.kink_lang.kink.internal.program.itree.NestedParam.Tuple
- Record Components:
lvars
- the local vars.
- All Implemented Interfaces:
NestedParam
- Enclosing interface:
- NestedParam
Param which is a tuple of lvars.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kink_lang.kink.internal.program.itree.NestedParam
NestedParam.Tuple
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
arity()
Returns the arity of the params.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lhsRepr()
Returns the string representation as an LHS.lvars()
Returns the value of thelvars
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Tuple
Constructs a tuple.- Parameters:
lvars
- the local vars.
-
-
Method Details
-
lhsRepr
Description copied from interface:NestedParam
Returns the string representation as an LHS.- Specified by:
lhsRepr
in interfaceNestedParam
- Returns:
- the string representation as an LHS.
-
arity
public int arity()Returns the arity of the params.- Returns:
- the arity of the params.
-
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 withObjects::equals(Object,Object)
. -
lvars
Returns the value of thelvars
record component.- Returns:
- the value of the
lvars
record component
-