java.lang.Object
java.lang.Record
org.aya.core.pat.Pat.Bind
- 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 LocalVarbind()Returns the value of thebindrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.@NotNull PatMake sure you are inline all patterns in ordervoidstoreBindings(@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
-
Bind
Creates an instance of aBindrecord class.- Parameters:
explicit- the value for theexplicitrecord componentbind- the value for thebindrecord 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. -
bind
Returns the value of thebindrecord component.- Returns:
- the value of the
bindrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-