java.lang.Object
java.lang.Record
org.aya.unify.Synthesizer
- All Implemented Interfaces:
Contextful,Stateful
public record Synthesizer(@NotNull org.aya.generic.NameGenerator nameGen, @NotNull AbstractTycker tycker)
extends Record
implements Stateful, Contextful
-
Constructor Summary
ConstructorsConstructorDescriptionSynthesizer(@NotNull org.aya.generic.NameGenerator nameGen, @NotNull AbstractTycker tycker) Creates an instance of aSynthesizerrecord class.Synthesizer(@NotNull AbstractTycker tycker) -
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.booleaninheritPiDom(@NotNull org.aya.syntax.core.term.Term ty, @NotNull org.aya.syntax.core.term.SortTerm expected) booleanisTypeMeta(org.aya.syntax.ref.MetaVar.Requirement req) @NotNull org.aya.syntax.ref.LocalCtxlocalCtx()@NotNull org.aya.generic.NameGeneratornameGen()Returns the value of thenameGenrecord component.@NotNull org.aya.syntax.ref.LocalVarputIndex(@NotNull org.aya.syntax.core.term.Term type) @NotNull org.aya.syntax.ref.LocalCtxsetLocalCtx(@NotNull org.aya.syntax.ref.LocalCtx ctx) UpdatelocalCtxwith the given one@NotNull TyckStatestate()@NotNull org.aya.syntax.core.term.Termsynth(@NotNull org.aya.syntax.core.term.Term term) @NotNull org.aya.syntax.core.term.TermsynthDontNormalize(@NotNull org.aya.syntax.core.term.Term term) final StringtoString()Returns a string representation of this record class.@Nullable org.aya.syntax.core.term.TermtrySynth(@NotNull org.aya.syntax.core.term.Term term) @NotNull AbstractTyckertycker()Returns the value of thetyckerrecord 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.Stateful
freezeHoles, solve, whnf
-
Constructor Details
-
Synthesizer
-
Synthesizer
public Synthesizer(@NotNull @NotNull org.aya.generic.NameGenerator nameGen, @NotNull @NotNull AbstractTycker tycker) Creates an instance of aSynthesizerrecord class.- Parameters:
nameGen- the value for thenameGenrecord componenttycker- the value for thetyckerrecord component
-
-
Method Details
-
inheritPiDom
public boolean inheritPiDom(@NotNull @NotNull org.aya.syntax.core.term.Term ty, @NotNull @NotNull org.aya.syntax.core.term.SortTerm expected) -
trySynth
@Nullable public @Nullable org.aya.syntax.core.term.Term trySynth(@NotNull @NotNull org.aya.syntax.core.term.Term term) -
synth
@NotNull public @NotNull org.aya.syntax.core.term.Term synth(@NotNull @NotNull org.aya.syntax.core.term.Term term) -
synthDontNormalize
@NotNull public @NotNull org.aya.syntax.core.term.Term synthDontNormalize(@NotNull @NotNull org.aya.syntax.core.term.Term term) -
putIndex
@NotNull public @NotNull org.aya.syntax.ref.LocalVar putIndex(@NotNull @NotNull org.aya.syntax.core.term.Term type) -
state
-
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
-
isTypeMeta
public boolean isTypeMeta(@NotNull org.aya.syntax.ref.MetaVar.Requirement req) -
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). -
nameGen
@NotNull public @NotNull org.aya.generic.NameGenerator nameGen()Returns the value of thenameGenrecord component.- Returns:
- the value of the
nameGenrecord component
-
tycker
Returns the value of thetyckerrecord component.- Returns:
- the value of the
tyckerrecord component
-