java.lang.Object
java.lang.Record
org.aya.tyck.TyckState.Eqn
- All Implemented Interfaces:
AyaDocile
- Enclosing class:
TyckState
public static record TyckState.Eqn(@NotNull Term lhs, @NotNull Term rhs, @NotNull org.aya.util.Ordering cmp, @NotNull org.aya.util.error.SourcePos pos, @NotNull LocalCtx localCtx, TermComparator.Sub lr, TermComparator.Sub rl)
extends Record
implements AyaDocile
-
Constructor Summary
ConstructorsConstructorDescriptionEqn(@NotNull Term lhs, @NotNull Term rhs, @NotNull org.aya.util.Ordering cmp, @NotNull org.aya.util.error.SourcePos pos, @NotNull LocalCtx localCtx, TermComparator.Sub lr, TermComparator.Sub rl) 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 Termlhs()Returns the value of thelhsrecord component.@NotNull LocalCtxlocalCtx()Returns the value of thelocalCtxrecord component.lr()Returns the value of thelrrecord component.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.@NotNull Termrhs()Returns the value of therhsrecord component.rl()Returns the value of therlrecord component.@NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.distill.DistillerOptions 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
debuggerOnlyToDoc
-
Constructor Details
-
Eqn
public Eqn(@NotNull @NotNull Term lhs, @NotNull @NotNull Term rhs, @NotNull @NotNull org.aya.util.Ordering cmp, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull LocalCtx localCtx, @NotNull TermComparator.Sub lr, @NotNull TermComparator.Sub rl) 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 componentlr- the value for thelrrecord componentrl- the value for therlrecord component
-
-
Method Details
-
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) -
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
Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
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
Returns the value of thelocalCtxrecord component.- Returns:
- the value of the
localCtxrecord component
-
lr
Returns the value of thelrrecord component.- Returns:
- the value of the
lrrecord component
-
rl
Returns the value of therlrecord component.- Returns:
- the value of the
rlrecord component
-