Module aya.base

Record Class AppTerm

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

public record AppTerm(@NotNull Term of, @NotNull org.aya.util.Arg<@NotNull Term> arg) extends Record implements Elimination
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike

    org.aya.guest0x0.cubical.Restr.TermLike.Factory<T>

    Nested classes/interfaces inherited from interface org.aya.core.term.Term

    Term.Matching, Term.Param
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppTerm(@NotNull Term of, @NotNull org.aya.util.Arg<@NotNull Term> arg)
    Creates an instance of a AppTerm record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.aya.util.Arg<@NotNull Term>
    arg()
    Returns the value of the arg record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    static @NotNull Term
    make(@NotNull AppTerm app)
     
    static @NotNull Term
    make(@NotNull Term f, @NotNull org.aya.util.Arg<Term> arg)
     
    static @NotNull Term
    make(LamTerm lam, @NotNull org.aya.util.Arg<Term> arg)
     
    @NotNull Term
    of()
    Returns the value of the of record component.
    final String
    Returns a string representation of this record class.
    static @NotNull Term
    unapp(@NotNull Term term, kala.collection.mutable.MutableList<org.aya.util.Arg<@NotNull Term>> args)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.aya.generic.AyaDocile

    debuggerOnlyToDoc

    Methods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike

    asFormula

    Methods inherited from interface org.aya.core.term.Term

    computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
  • Constructor Details

    • AppTerm

      public AppTerm(@NotNull @NotNull Term of, @NotNull @NotNull org.aya.util.Arg<@NotNull Term> arg)
      Creates an instance of a AppTerm record class.
      Parameters:
      of - the value for the of record component
      arg - the value for the arg record component
  • Method Details

    • make

      @Contract(pure=true) @NotNull public static @NotNull Term make(@NotNull @NotNull Term f, @NotNull @NotNull org.aya.util.Arg<Term> arg)
    • make

      @Contract(pure=true) @NotNull public static @NotNull Term make(@NotNull @NotNull AppTerm app)
    • make

      @NotNull public static @NotNull Term make(LamTerm lam, @NotNull @NotNull org.aya.util.Arg<Term> arg)
    • unapp

      @NotNull public static @NotNull Term unapp(@NotNull @NotNull Term term, kala.collection.mutable.MutableList<org.aya.util.Arg<@NotNull Term>> args)
    • 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.
    • of

      @NotNull public @NotNull Term of()
      Returns the value of the of record component.
      Specified by:
      of in interface Elimination
      Returns:
      the value of the of record component
    • arg

      @NotNull public @NotNull org.aya.util.Arg<@NotNull Term> arg()
      Returns the value of the arg record component.
      Returns:
      the value of the arg record component