java.lang.Object
java.lang.Record
org.aya.core.term.ListTerm
- All Implemented Interfaces:
StableWHNF,Term,AyaDocile,Shaped<Term>,Shaped.Inductive<Term>,Shaped.List<Term>,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record ListTerm(@NotNull kala.collection.immutable.ImmutableSeq<Term> repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type)
extends Record
implements StableWHNF, Shaped.List<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.generic.Shaped
Shaped.Inductive<T>, Shaped.List<T extends AyaDocile>, Shaped.Nat<T extends AyaDocile>Nested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionListTerm(@NotNull kala.collection.immutable.ImmutableSeq<Term> repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type) Creates an instance of aListTermrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Termfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull TermmakeCons(@NotNull CtorDef cons, @NotNull org.aya.util.Arg<Term> dataArg, @NotNull org.aya.util.Arg<Term> x, @NotNull org.aya.util.Arg<Term> last) @NotNull Term@NotNull ShapeRecognitionReturns the value of therecognitionrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Term>repr()Returns the value of thereprrecord component.final StringtoString()Returns a string representation of this record class.@NotNull DataCalltype()Returns the value of thetyperecord component.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.generic.Shaped.Inductive
compareShape, ctorRefMethods inherited from interface org.aya.generic.Shaped.List
compareUntyped, constructorFormMethods inherited from interface org.aya.core.term.Term
computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
ListTerm
public ListTerm(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Term> repr, @NotNull @NotNull ShapeRecognition recognition, @NotNull @NotNull DataCall type) Creates an instance of aListTermrecord class.- Parameters:
repr- the value for thereprrecord componentrecognition- the value for therecognitionrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
makeNil
@NotNull public @NotNull Term makeNil(@NotNull @NotNull CtorDef nil, @NotNull @NotNull org.aya.util.Arg<Term> dataArg) - Specified by:
makeNilin interfaceShaped.List<Term>
-
makeCons
@NotNull public @NotNull Term makeCons(@NotNull @NotNull CtorDef cons, @NotNull @NotNull org.aya.util.Arg<Term> dataArg, @NotNull @NotNull org.aya.util.Arg<Term> x, @NotNull @NotNull org.aya.util.Arg<Term> last) - Specified by:
makeConsin interfaceShaped.List<Term>
-
destruct
@NotNull public @NotNull Term destruct(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Term> repr) - Specified by:
destructin interfaceShaped.List<Term>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
repr
Returns the value of thereprrecord component.- Specified by:
reprin interfaceShaped.List<Term>- Returns:
- the value of the
reprrecord component
-
recognition
Returns the value of therecognitionrecord component.- Specified by:
recognitionin interfaceShaped.Inductive<Term>- Returns:
- the value of the
recognitionrecord component
-
type
Returns the value of thetyperecord component.
-