java.lang.Object
java.lang.Record
org.aya.tyck.pat.BindEater
- All Implemented Interfaces:
Function<org.aya.syntax.core.pat.Pat,,org.aya.syntax.core.pat.Pat> UnaryOperator<org.aya.syntax.core.pat.Pat>
public record BindEater(@NotNull kala.collection.mutable.MutableList<org.aya.syntax.core.term.Term> mouth)
extends Record
implements UnaryOperator<org.aya.syntax.core.pat.Pat>
We eat bindings, now there are only holes.
-
Constructor Summary
ConstructorsConstructorDescriptionBindEater(@NotNull kala.collection.mutable.MutableList<org.aya.syntax.core.term.Term> mouth) Creates an instance of aBindEaterrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.syntax.core.pat.Patapply(@NotNull org.aya.syntax.core.pat.Pat pat) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableList<org.aya.syntax.core.term.Term> mouth()Returns the value of themouthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BindEater
public BindEater(@NotNull @NotNull kala.collection.mutable.MutableList<org.aya.syntax.core.term.Term> mouth) Creates an instance of aBindEaterrecord class.- Parameters:
mouth- the value for themouthrecord component
-
-
Method Details
-
apply
@NotNull public @NotNull org.aya.syntax.core.pat.Pat apply(@NotNull @NotNull org.aya.syntax.core.pat.Pat pat) -
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). -
mouth
@NotNull public @NotNull kala.collection.mutable.MutableList<org.aya.syntax.core.term.Term> mouth()Returns the value of themouthrecord component.- Returns:
- the value of the
mouthrecord component
-