Module aya.base

Record Class ConCall

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

public record ConCall(ConCallLike.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) extends Record implements ConCallLike
  • 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 ConCallLike.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

    • update

      @NotNull public @NotNull ConCall update(@NotNull @NotNull ConCallLike.Head head, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs)
    • descent

      @NotNull public @NotNull ConCall descent(@NotNull @NotNull UnaryOperator<Term> f, @NotNull @NotNull UnaryOperator<Pat> g)
      Description copied from interface: Term
      Descending an operation to the term AST. NOTE: Currently we require the operation `f` to preserve:
      invalid @link
      StructCall
      , DataCall, SortTerm, Shaped.Applicable.
      Specified by:
      descent in interface Term
    • 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 ConCallLike.Head head()
      Returns the value of the head record component.
      Specified by:
      head in interface ConCallLike
      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.
      Specified by:
      conArgs in interface ConCallLike
      Returns:
      the value of the conArgs record component