java.lang.Object
java.lang.Record
org.aya.core.term.ProjTerm
- All Implemented Interfaces:
Elimination,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intix()Returns the value of theixrecord component.@NotNull Termof()Returns the value of theofrecord component.static @NotNull Termstatic @NotNull Termstatic @NotNull SubstprojSubst(@NotNull Term term, int index, kala.collection.immutable.ImmutableSeq<Term.Param> telescope) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormulaMethods inherited from interface org.aya.core.term.Term
computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
ProjTerm
Creates an instance of aProjTermrecord class.- Parameters:
of- the value for theofrecord componentix- the value for theixrecord component
-
-
Method Details
-
projSubst
@NotNull public static @NotNull Subst projSubst(@NotNull @NotNull Term term, int index, kala.collection.immutable.ImmutableSeq<Term.Param> telescope) -
proj
-
proj
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
of
Returns the value of theofrecord component.- Specified by:
ofin interfaceElimination- Returns:
- the value of the
ofrecord component
-
ix
public int ix()Returns the value of theixrecord component.- Returns:
- the value of the
ixrecord component
-