Module aya.base

Record Class MetaTerm

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

public record MetaTerm(@NotNull Meta ref, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> contextArgs, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> args) extends Record implements Callable
  • Nested Class Summary

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

    Callable.DefCall, Callable.Factory<D extends Def,S extends Decl>

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

    Term.Matching, Term.Param
  • Constructor Summary

    Constructors
    Constructor
    Description
    MetaTerm(@NotNull Meta ref, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> contextArgs, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> args)
    Creates an instance of a MetaTerm record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>>
    Returns the value of the args record component.
    @NotNull PiTerm
    asPi(boolean explicit)
     
    @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>>
    Returns the value of the contextArgs record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull kala.collection.SeqView<@NotNull org.aya.util.Arg<Term>>
     
    final int
    Returns a hash code value for this object.
    @NotNull Meta
    ref()
    Returns the value of the ref record component.
    final String
    Returns a string representation of this record class.

    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

    • MetaTerm

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

    • asPi

      @NotNull public @NotNull PiTerm asPi(boolean explicit)
    • fullArgs

      @NotNull public @NotNull kala.collection.SeqView<@NotNull org.aya.util.Arg<Term>> fullArgs()
    • 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.
    • ref

      @NotNull public @NotNull Meta ref()
      Returns the value of the ref record component.
      Specified by:
      ref in interface Callable
      Returns:
      the value of the ref record component
    • contextArgs

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

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> args()
      Returns the value of the args record component.
      Specified by:
      args in interface Callable
      Returns:
      the value of the args record component