java.lang.Object
java.lang.Record
org.aya.core.term.ConCall.Head
- Record Components:
dataArgs- the arguments to the data type, NOT the constructor patterns!!
- Enclosing class:
ConCall
public static record ConCall.Head(@NotNull DefVar<DataDef,TeleDecl.DataDecl> dataRef, @NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHead(@NotNull DefVar<DataDef, TeleDecl.DataDecl> dataRef, @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs) Creates an instance of aHeadrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>>dataArgs()Returns the value of thedataArgsrecord component.@NotNull DefVar<DataDef,TeleDecl.DataDecl> dataRef()Returns the value of thedataRefrecord component.@NotNull ConCall.Headdescent(@NotNull UnaryOperator<@NotNull Term> f) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.intulift()Returns the value of theuliftrecord component.@NotNull DataCall
-
Constructor Details
-
Head
public Head(@NotNull @NotNull DefVar<DataDef, TeleDecl.DataDecl> dataRef, @NotNull @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs) Creates an instance of aHeadrecord class.- Parameters:
dataRef- the value for thedataRefrecord componentref- the value for therefrecord componentulift- the value for theuliftrecord componentdataArgs- the value for thedataArgsrecord component
-
-
Method Details
-
underlyingDataCall
-
descent
-
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 '=='. -
dataRef
Returns the value of thedataRefrecord component.- Returns:
- the value of the
dataRefrecord component
-
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
ulift
public int ulift()Returns the value of theuliftrecord component.- Returns:
- the value of the
uliftrecord component
-
dataArgs
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs()Returns the value of thedataArgsrecord component.- Returns:
- the value of the
dataArgsrecord component
-