java.lang.Object
java.lang.Record
org.aya.core.repr.CodeShape.TermShape.Call
- Record Components:
superLevel- the data def referenceargs- corresponds toDataCall.args()
- All Implemented Interfaces:
CodeShape.TermShape
- Enclosing interface:
CodeShape.TermShape
public static record CodeShape.TermShape.Call(int superLevel, @NotNull kala.collection.immutable.ImmutableSeq<CodeShape.TermShape> args)
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
ConstructorsConstructorDescriptionCall(int superLevel, @NotNull kala.collection.immutable.ImmutableSeq<CodeShape.TermShape> args) Creates an instance of aCallrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<CodeShape.TermShape>args()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull CodeShape.TermShape.CalljustCall(int superLevel) intReturns the value of thesuperLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Call
public Call(int superLevel, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<CodeShape.TermShape> args) Creates an instance of aCallrecord class.- Parameters:
superLevel- the value for thesuperLevelrecord componentargs- the value for theargsrecord component
-
-
Method Details
-
justCall
@Contract("_ -> new") @NotNull public static @NotNull CodeShape.TermShape.Call justCall(int superLevel) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
superLevel
public int superLevel()Returns the value of thesuperLevelrecord component.- Returns:
- the value of the
superLevelrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-