java.lang.Object
java.lang.Record
org.aya.tyck.TyckState.Eqn
- All Implemented Interfaces:
org.aya.generic.AyaDocile
- Enclosing class:
TyckState
public static record TyckState.Eqn(@NotNull org.aya.syntax.core.term.Term lhs, @NotNull org.aya.syntax.core.term.Term rhs, @NotNull org.aya.util.Ordering cmp, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.syntax.ref.LocalCtx localCtx)
extends Record
implements org.aya.generic.AyaDocile
-
Constructor Summary
ConstructorsConstructorDescriptionEqn(@NotNull org.aya.syntax.core.term.Term lhs, @NotNull org.aya.syntax.core.term.Term rhs, @NotNull org.aya.util.Ordering cmp, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.syntax.ref.LocalCtx localCtx) Creates an instance of aEqnrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.util.Orderingcmp()Returns the value of thecmprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.syntax.core.term.Termlhs()Returns the value of thelhsrecord component.@NotNull org.aya.syntax.ref.LocalCtxlocalCtx()Returns the value of thelocalCtxrecord component.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.@NotNull org.aya.syntax.core.term.Termrhs()Returns the value of therhsrecord component.@NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.prettier.PrettierOptions options) 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
debuggerOnlyToString
-
Constructor Details
-
Eqn
public Eqn(@NotNull @NotNull org.aya.syntax.core.term.Term lhs, @NotNull @NotNull org.aya.syntax.core.term.Term rhs, @NotNull @NotNull org.aya.util.Ordering cmp, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.syntax.ref.LocalCtx localCtx) Creates an instance of aEqnrecord class.- Parameters:
lhs- the value for thelhsrecord componentrhs- the value for therhsrecord componentcmp- the value for thecmprecord componentpos- the value for theposrecord componentlocalCtx- the value for thelocalCtxrecord component
-
-
Method Details
-
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options) - Specified by:
toDocin interfaceorg.aya.generic.AyaDocile
-
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). -
lhs
@NotNull public @NotNull org.aya.syntax.core.term.Term lhs()Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
rhs
@NotNull public @NotNull org.aya.syntax.core.term.Term rhs()Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-
cmp
@NotNull public @NotNull org.aya.util.Ordering cmp()Returns the value of thecmprecord component.- Returns:
- the value of the
cmprecord component
-
pos
@NotNull public @NotNull org.aya.util.error.SourcePos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
localCtx
@NotNull public @NotNull org.aya.syntax.ref.LocalCtx localCtx()Returns the value of thelocalCtxrecord component.- Returns:
- the value of the
localCtxrecord component
-