Module aya.base

Record Class ConCall

java.lang.Object
java.lang.Record
org.aya.core.term.ConCall
All Implemented Interfaces:
Callable, Callable.DefCall, Term, AyaDocile, org.aya.guest0x0.cubical.Restr.TermLike<Term>

public record ConCall(ConCall.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) extends Record implements Callable.DefCall
  • Constructor Details

    • ConCall

      public ConCall(@NotNull @NotNull DefVar<DataDef,TeleDecl.DataDecl> dataRef, @NotNull @NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> conArgs)
    • ConCall

      public ConCall(@NotNull ConCall.Head head, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs)
      Creates an instance of a ConCall record class.
      Parameters:
      head - the value for the head record component
      conArgs - the value for the conArgs record component
  • Method Details

    • ref

      @NotNull public @NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()
      Specified by:
      ref in interface Callable
      Specified by:
      ref in interface Callable.DefCall
    • ulift

      public int ulift()
      Specified by:
      ulift in interface Callable.DefCall
    • args

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args()
      Specified by:
      args in interface Callable
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • head

      @NotNull public ConCall.Head head()
      Returns the value of the head record component.
      Returns:
      the value of the head record component
    • conArgs

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