java.lang.Object
java.lang.Record
org.aya.core.visitor.Zonker
public record Zonker(@NotNull Tycker tycker, @NotNull kala.collection.mutable.MutableSinglyLinkedList<Term> stack)
extends Record
implements EndoTerm
Instantiates holes (assuming all holes are solved).
Called
StripVisitor in Arend and zonk in
GHC and Andras' setoidtt prototype. Related discussion can be found on
Twitter
and StackOverflow.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface org.aya.core.visitor.EndoTerm
EndoTerm.Elevator, EndoTerm.Renamer, EndoTerm.Substituter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Termfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull Zonker@NotNull Term@NotNull Term@NotNull kala.collection.mutable.MutableSinglyLinkedList<Term>stack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Tyckertycker()Returns the value of thetyckerrecord component.
-
Constructor Details
-
Method Details
-
make
-
pre
-
post
-
apply
-
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). -
tycker
Returns the value of thetyckerrecord component.- Returns:
- the value of the
tyckerrecord component
-
stack
Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-