java.lang.Object
java.lang.Record
org.aya.core.term.MetaLitTerm
public record MetaLitTerm(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Object repr, @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> candidates, @NotNull Term type)
extends Record
implements 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
ConstructorsConstructorDescriptionMetaLitTerm(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Object repr, @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef, ShapeRecognition>> candidates, @NotNull Term type) Creates an instance of aMetaLitTermrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> Returns the value of thecandidatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Terminline()@NotNull Objectrepr()Returns the value of thereprrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Termtype()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.core.term.Term
computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
MetaLitTerm
public MetaLitTerm(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Object repr, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef, ShapeRecognition>> candidates, @NotNull @NotNull Term type) Creates an instance of aMetaLitTermrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentrepr- the value for thereprrecord componentcandidates- the value for thecandidatesrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
inline
-
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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Returns:
- the value of the
sourcePosrecord component
-
repr
Returns the value of thereprrecord component.- Returns:
- the value of the
reprrecord component
-
candidates
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> candidates()Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-