java.lang.Object
java.lang.Record
org.aya.core.pat.Pat.Ctor
- Enclosing interface:
Pat
-
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.Ctordescent(@NotNull UnaryOperator<Pat> f, @NotNull UnaryOperator<Term> g) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PatMake sure you are inline all patterns in order@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>>params()Returns the value of theparamsrecord component.@NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()Returns the value of therefrecord component.voidstoreBindings(@NotNull LocalCtx ctx, @NotNull Subst rhsSubst) final StringtoString()Returns a string representation of this record class.@NotNull DataCalltype()Returns the value of thetyperecord component.@NotNull Pat.Ctorupdate(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>> params, @NotNull DataCall type) @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
-
Ctor
public Ctor(@NotNull @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>> params, @NotNull @NotNull DataCall type) Creates an instance of aCtorrecord class.- Parameters:
ref- the value for therefrecord componentparams- the value for theparamsrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
update
-
descent
@NotNull public @NotNull Pat.Ctor 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). -
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-