java.lang.Object
java.lang.Record
org.aya.unify.DoubleChecker
- All Implemented Interfaces:
Contextful,Problematic,Stateful
public record DoubleChecker(@NotNull Unifier unifier, @NotNull Synthesizer synthesizer)
extends Record
implements Stateful, Contextful, Problematic
- API Note:
AbstractTycker.localCtx()should be the same object asSynthesizer.localCtx()
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleChecker(@NotNull Unifier unifier) DoubleChecker(@NotNull Unifier unifier, @NotNull Synthesizer synthesizer) Creates an instance of aDoubleCheckerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninherit(@NotNull org.aya.syntax.core.term.Term preterm, @NotNull org.aya.syntax.core.term.Term expected) @NotNull org.aya.syntax.ref.LocalCtxlocalCtx()@NotNull org.aya.syntax.ref.LocalVarputIndex(@NotNull org.aya.syntax.core.term.Term type) @NotNull org.aya.util.reporter.Reporterreporter()@NotNull org.aya.syntax.ref.LocalCtxsetLocalCtx(@NotNull org.aya.syntax.ref.LocalCtx ctx) UpdatelocalCtxwith the given one@NotNull TyckStatestate()@NotNull SynthesizerReturns the value of thesynthesizerrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Unifierunifier()Returns the value of theunifierrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Contextful
freshMeta, generatePi, mockTerm, subscoped, withMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, failMethods inherited from interface org.aya.tyck.tycker.Stateful
freezeHoles, solve, whnf
-
Constructor Details
-
DoubleChecker
-
DoubleChecker
Creates an instance of aDoubleCheckerrecord class.- Parameters:
unifier- the value for theunifierrecord componentsynthesizer- the value for thesynthesizerrecord component
-
-
Method Details
-
inherit
public boolean inherit(@NotNull @NotNull org.aya.syntax.core.term.Term preterm, @NotNull @NotNull org.aya.syntax.core.term.Term expected) -
localCtx
@NotNull public @NotNull org.aya.syntax.ref.LocalCtx localCtx()- Specified by:
localCtxin interfaceContextful
-
setLocalCtx
@NotNull public @NotNull org.aya.syntax.ref.LocalCtx setLocalCtx(@NotNull @NotNull org.aya.syntax.ref.LocalCtx ctx) Description copied from interface:ContextfulUpdatelocalCtxwith the given one- Specified by:
setLocalCtxin interfaceContextful- Parameters:
ctx- newLocalCtx- Returns:
- old context
-
state
-
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()- Specified by:
reporterin interfaceProblematic
-
putIndex
@NotNull public @NotNull org.aya.syntax.ref.LocalVar putIndex(@NotNull @NotNull org.aya.syntax.core.term.Term type) -
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). -
unifier
Returns the value of theunifierrecord component.- Returns:
- the value of the
unifierrecord component
-
synthesizer
Returns the value of thesynthesizerrecord component.- Returns:
- the value of the
synthesizerrecord component
-