java.lang.Object
java.lang.Record
org.aya.core.term.ErrorTerm
- Record Components:
isReallyError- true if this is indeed an error, false if this is just for pretty printing placeholder
- All Implemented Interfaces:
StableWHNF,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record ErrorTerm(@NotNull AyaDocile description, boolean isReallyError)
extends Record
implements StableWHNF
- See Also:
-
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 TypeMethodDescription@NotNull AyaDocileReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisReallyErrorrecord component.final StringtoString()Returns a string representation of this record class.static @NotNull ErrorTermstatic @NotNull ErrorTermstatic @NotNull ErrorTermunexpected(@NotNull AyaDocile origin) 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
-
ErrorTerm
-
ErrorTerm
-
ErrorTerm
public ErrorTerm(@NotNull @NotNull org.aya.pretty.doc.Doc description, boolean isReallyError) -
ErrorTerm
Creates an instance of aErrorTermrecord class.- Parameters:
description- the value for thedescriptionrecord componentisReallyError- the value for theisReallyErrorrecord component
-
-
Method Details
-
typeOf
-
typeOf
-
unexpected
-
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 '=='. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
isReallyError
public boolean isReallyError()Returns the value of theisReallyErrorrecord component.- Returns:
- the value of the
isReallyErrorrecord component
-