Module aya.base

Record Class ConCall.Head

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 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 a Head record class.
      Parameters:
      dataRef - the value for the dataRef record component
      ref - the value for the ref record component
      ulift - the value for the ulift record component
      dataArgs - the value for the dataArgs record component
  • Method Details

    • underlyingDataCall

      @NotNull public @NotNull DataCall underlyingDataCall()
    • descent

      @NotNull public @NotNull ConCall.Head descent(@NotNull @NotNull UnaryOperator<@NotNull Term> f)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dataRef

      @NotNull public @NotNull DefVar<DataDef,TeleDecl.DataDecl> dataRef()
      Returns the value of the dataRef record component.
      Returns:
      the value of the dataRef record component
    • ref

      @NotNull public @NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()
      Returns the value of the ref record component.
      Returns:
      the value of the ref record component
    • ulift

      public int ulift()
      Returns the value of the ulift record component.
      Returns:
      the value of the ulift record component
    • dataArgs

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs()
      Returns the value of the dataArgs record component.
      Returns:
      the value of the dataArgs record component