Module aya.base

Record Class PAppTerm

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

public record PAppTerm(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args, @NotNull PathTerm cube) 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
    PAppTerm(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args, @NotNull PathTerm cube)
    Creates an instance of a PAppTerm record class.
    PAppTerm(@NotNull Term of, @NotNull PathTerm cube, org.aya.util.Arg<@NotNull Term> @NotNull ... args)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>>
    Returns the value of the args record component.
    @NotNull PathTerm
    Returns the value of the cube record component.
    @NotNull PAppTerm
    descent(@NotNull UnaryOperator<Term> f, @NotNull UnaryOperator<Pat> g)
    Descending an operation to the term AST.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull Term
    of()
    Returns the value of the of record component.
    final String
    Returns a string representation of this record class.
    @NotNull PAppTerm
    update(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args, @NotNull PathTerm cube)
     

    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

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

    • PAppTerm

      @SafeVarargs public PAppTerm(@NotNull @NotNull Term of, @NotNull @NotNull PathTerm cube, org.aya.util.Arg<@NotNull Term> @NotNull ... args)
    • PAppTerm

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

    • update

      @NotNull public @NotNull PAppTerm update(@NotNull @NotNull Term of, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args, @NotNull @NotNull PathTerm cube)
    • descent

      @NotNull public @NotNull PAppTerm 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.
    • 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
    • args

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

      @NotNull public @NotNull PathTerm cube()
      Returns the value of the cube record component.
      Returns:
      the value of the cube record component