java.lang.Object
java.lang.Record
org.aya.core.pat.Pat.Meta
- Record Components:
fakeBind- is used when inline if there is no solution. So don't add this toLocalCtxtoo early and remember to inline Meta inClauseTycker.checkLhs(ExprTycker, Pattern.Clause, Def.Signature, boolean, boolean)
- Enclosing interface:
Pat
public static record Pat.Meta(@NotNull kala.value.MutableValue<Pat> solution, @NotNull LocalVar fakeBind, @NotNull Term type)
extends Record
implements Pat
Meta for Hole
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.pat.Pat
Pat.Absurd, Pat.Bind, Pat.Ctor, Pat.Meta, Pat.Preclause<T extends AyaDocile>, Pat.ShapedInt, Pat.Tuple -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Pat.Metadescent(@NotNull UnaryOperator<Pat> f, @NotNull UnaryOperator<Term> g) final booleanIndicates whether some other object is "equal to" this one.@NotNull LocalVarfakeBind()Returns the value of thefakeBindrecord component.final inthashCode()Returns a hash code value for this object.@NotNull PatMake sure you are inline all patterns in order@NotNull kala.value.MutableValue<Pat>solution()Returns the value of thesolutionrecord component.voidstoreBindings(@NotNull LocalCtx ctx, @NotNull Subst rhsSubst) final StringtoString()Returns a string representation of this record class.@NotNull Termtype()Returns the value of thetyperecord component.@NotNull Pat.Meta@NotNull Patzonk(@NotNull ConcreteAwareTycker tycker) 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
-
Meta
public Meta(@NotNull @NotNull kala.value.MutableValue<Pat> solution, @NotNull @NotNull LocalVar fakeBind, @NotNull @NotNull Term type) Creates an instance of aMetarecord class.- Parameters:
solution- the value for thesolutionrecord componentfakeBind- the value for thefakeBindrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
update
-
descent
@NotNull public @NotNull Pat.Meta descent(@NotNull @NotNull UnaryOperator<Pat> f, @NotNull @NotNull UnaryOperator<Term> g) -
storeBindings
- Specified by:
storeBindingsin interfacePat
-
zonk
-
inline
Description copied from interface:PatMake sure you are inline all patterns in order -
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). -
solution
Returns the value of thesolutionrecord component.- Returns:
- the value of the
solutionrecord component
-
fakeBind
Returns the value of thefakeBindrecord component.- Returns:
- the value of the
fakeBindrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-