java.lang.Object
java.lang.Record
org.aya.tyck.TyckState
public record TyckState(@NotNull kala.collection.mutable.MutableList<TyckState.Eqn> eqns, @NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<Meta>> activeMetas, @NotNull kala.collection.mutable.MutableMap<@NotNull Meta,@NotNull Term> metas, @NotNull kala.collection.mutable.MutableSet<@NotNull Meta> metaNotProps, PrimDef.Factory primFactory)
extends Record
Currently we only deal with ambiguous equations (so no 'stuck' equations).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTyckState(@NotNull kala.collection.mutable.MutableList<TyckState.Eqn> eqns, @NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<Meta>> activeMetas, @NotNull kala.collection.mutable.MutableMap<@NotNull Meta, @NotNull Term> metas, @NotNull kala.collection.mutable.MutableSet<@NotNull Meta> metaNotProps, PrimDef.Factory primFactory) Creates an instance of aTyckStaterecord class.TyckState(PrimDef.Factory primFactory) -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<Meta>>Returns the value of theactiveMetasrecord component.voidaddEqn(@NotNull TyckState.Eqn eqn) @NotNull kala.collection.mutable.MutableList<TyckState.Eqn>eqns()Returns the value of theeqnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableSet<@NotNull Meta>Returns the value of themetaNotPropsrecord component.metas()Returns the value of themetasrecord component.Returns the value of theprimFactoryrecord component.booleansimplify(@NotNull org.aya.util.reporter.Reporter reporter, Trace.Builder tracer) voidsolveEqn(@NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder tracer, @NotNull TyckState.Eqn eqn, boolean trying) voidsolveMetas(@NotNull org.aya.util.reporter.Reporter reporter, Trace.Builder traceBuilder) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TyckState
-
TyckState
public TyckState(@NotNull @NotNull kala.collection.mutable.MutableList<TyckState.Eqn> eqns, @NotNull @NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<Meta>> activeMetas, @NotNull @NotNull kala.collection.mutable.MutableMap<@NotNull Meta, @NotNull Term> metas, @NotNull @NotNull kala.collection.mutable.MutableSet<@NotNull Meta> metaNotProps, @NotNull PrimDef.Factory primFactory) Creates an instance of aTyckStaterecord class.- Parameters:
eqns- the value for theeqnsrecord componentactiveMetas- the value for theactiveMetasrecord componentmetas- the value for themetasrecord componentmetaNotProps- the value for themetaNotPropsrecord componentprimFactory- the value for theprimFactoryrecord component
-
-
Method Details
-
solveEqn
public void solveEqn(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder tracer, @NotNull @NotNull TyckState.Eqn eqn, boolean trying) - Parameters:
trying- whether to solve in a yasashi manner.
-
simplify
public boolean simplify(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder tracer) - Returns:
- true if
this.eqnsandthis.activeMetasare mutated.
-
solveMetas
public void solveMetas(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder traceBuilder) -
addEqn
-
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). -
eqns
Returns the value of theeqnsrecord component.- Returns:
- the value of the
eqnsrecord component
-
activeMetas
@NotNull public @NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<Meta>> activeMetas()Returns the value of theactiveMetasrecord component.- Returns:
- the value of the
activeMetasrecord component
-
metas
Returns the value of themetasrecord component.- Returns:
- the value of the
metasrecord component
-
metaNotProps
Returns the value of themetaNotPropsrecord component.- Returns:
- the value of the
metaNotPropsrecord component
-
primFactory
Returns the value of theprimFactoryrecord component.- Returns:
- the value of the
primFactoryrecord component
-