Module aya.base

Record Class Term.Param

java.lang.Object
java.lang.Record
org.aya.core.term.Term.Param
All Implemented Interfaces:
AyaDocile, ParamLike<Term>
Enclosing interface:
Term

public static record Term.Param(@NotNull LocalVar ref, @NotNull Term type, boolean explicit) extends Record implements ParamLike<Term>
  • Constructor Details

    • Param

      public Param(@NotNull @NotNull ParamLike<?> param, @NotNull @NotNull Term type)
    • Param

      public Param(@NotNull @NotNull LocalVar ref, @NotNull @NotNull Term type, boolean explicit)
      Creates an instance of a Param record class.
      Parameters:
      ref - the value for the ref record component
      type - the value for the type record component
      explicit - the value for the explicit record component
  • Method Details

    • fromBuffer

      @NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<@NotNull Term.Param> fromBuffer(@NotNull @NotNull kala.collection.mutable.MutableList<kala.tuple.Tuple3<LocalVar,Boolean,Term>> buf)
    • descent

      @NotNull public @NotNull Term.Param descent(@NotNull @NotNull Function<@NotNull Term,@NotNull Term> f)
    • implicitify

      @Contract(" -> new") @NotNull public @NotNull Term.Param implicitify()
    • rename

      @Contract(" -> new") @NotNull public @NotNull Term.Param rename()
    • renameVar

      @Contract(" -> new") @NotNull public @NotNull LocalVar renameVar()
    • toArg

      @Contract(" -> new") @NotNull public @NotNull org.aya.util.Arg<@NotNull Term> toArg()
    • toTerm

      @Contract(" -> new") @NotNull public @NotNull RefTerm toTerm()
    • toPat

      @NotNull public @NotNull Pat toPat()
    • subst

      @NotNull public @NotNull Term.Param subst(@NotNull @NotNull AnyVar var, @NotNull @NotNull Term term)
    • subst

      @NotNull public @NotNull Term.Param subst(@NotNull @NotNull Subst subst)
    • subst

      @NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> subst(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull Term.Param> params, @NotNull @NotNull Subst subst, int ulift)
    • subst

      @NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> subst(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull Term.Param> params, int ulift)
    • subst

      @NotNull public @NotNull Term.Param subst(@NotNull @NotNull Subst subst, int ulift)
    • interval

      @NotNull public static @NotNull Term.Param interval(@NotNull @NotNull LocalVar i)
    • 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.
    • ref

      @NotNull public @NotNull LocalVar ref()
      Returns the value of the ref record component.
      Specified by:
      ref in interface ParamLike<Term>
      Returns:
      the value of the ref record component
    • type

      @NotNull public @NotNull Term type()
      Returns the value of the type record component.
      Specified by:
      type in interface ParamLike<Term>
      Returns:
      the value of the type record component
    • explicit

      public boolean explicit()
      Returns the value of the explicit record component.
      Specified by:
      explicit in interface ParamLike<Term>
      Returns:
      the value of the explicit record component