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<org.aya.syntax.ref.MetaVar>> activeMetas, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.ref.MetaVar,org.aya.syntax.core.term.Term> solutions, @NotNull ShapeFactory shapeFactory, @NotNull PrimFactory primFactory)
extends Record
-
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<org.aya.syntax.ref.MetaVar>> activeMetas, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.ref.MetaVar, org.aya.syntax.core.term.Term> solutions, @NotNull ShapeFactory shapeFactory, @NotNull PrimFactory primFactory) Creates an instance of aTyckStaterecord class.TyckState(@NotNull ShapeFactory shapeFactory, @NotNull PrimFactory primFactory) -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<org.aya.syntax.ref.MetaVar>> Returns the value of theactiveMetasrecord component.voidaddEqn(TyckState.Eqn eqn) @NotNull org.aya.syntax.core.term.TermcomputeSolution(@NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull UnaryOperator<org.aya.syntax.core.term.Term> f) @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 PrimFactoryReturns the value of theprimFactoryrecord component.@NotNull ShapeFactoryReturns the value of theshapeFactoryrecord component.@NotNull kala.collection.mutable.MutableMap<org.aya.syntax.ref.MetaVar, org.aya.syntax.core.term.Term> Returns the value of thesolutionsrecord component.voidsolve(org.aya.syntax.ref.MetaVar meta, org.aya.syntax.core.term.Term candidate) voidsolveMetas(@NotNull org.aya.util.reporter.Reporter reporter) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TyckState
public TyckState(@NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull PrimFactory primFactory) -
TyckState
public TyckState(@NotNull @NotNull kala.collection.mutable.MutableList<TyckState.Eqn> eqns, @NotNull @NotNull kala.collection.mutable.MutableList<org.aya.util.error.WithPos<org.aya.syntax.ref.MetaVar>> activeMetas, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.ref.MetaVar, org.aya.syntax.core.term.Term> solutions, @NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull PrimFactory primFactory) Creates an instance of aTyckStaterecord class.- Parameters:
eqns- the value for theeqnsrecord componentactiveMetas- the value for theactiveMetasrecord componentsolutions- the value for thesolutionsrecord componentshapeFactory- the value for theshapeFactoryrecord componentprimFactory- the value for theprimFactoryrecord component
-
-
Method Details
-
solve
@Internal public void solve(org.aya.syntax.ref.MetaVar meta, org.aya.syntax.core.term.Term candidate) -
solveMetas
public void solveMetas(@NotNull @NotNull org.aya.util.reporter.Reporter reporter) -
computeSolution
@NotNull public @NotNull org.aya.syntax.core.term.Term computeSolution(@NotNull @NotNull org.aya.syntax.core.term.call.MetaCall meta, @NotNull @NotNull UnaryOperator<org.aya.syntax.core.term.Term> f) -
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<org.aya.syntax.ref.MetaVar>> activeMetas()Returns the value of theactiveMetasrecord component.- Returns:
- the value of the
activeMetasrecord component
-
solutions
@NotNull public @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.ref.MetaVar,org.aya.syntax.core.term.Term> solutions()Returns the value of thesolutionsrecord component.- Returns:
- the value of the
solutionsrecord component
-
shapeFactory
Returns the value of theshapeFactoryrecord component.- Returns:
- the value of the
shapeFactoryrecord component
-
primFactory
Returns the value of theprimFactoryrecord component.- Returns:
- the value of the
primFactoryrecord component
-