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 inPatTycker.checkLhs(ExprTycker, Pattern.Clause, Def.Signature, boolean)
- Enclosing interface:
Pat
public static record Pat.Meta(boolean explicit, @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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.@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) final StringtoString()Returns a string representation of this record class.@NotNull Termtype()Returns the value of thetyperecord component.@NotNull PatMethods 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(boolean explicit, @NotNull @NotNull kala.value.MutableValue<Pat> solution, @NotNull @NotNull LocalVar fakeBind, @NotNull @NotNull Term type) Creates an instance of aMetarecord class.- Parameters:
explicit- the value for theexplicitrecord componentsolution- the value for thesolutionrecord componentfakeBind- the value for thefakeBindrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
explicit
public boolean explicit()Returns the value of theexplicitrecord component. -
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
-