Module aya.base

Record Class Finalizer.Zonk<T extends Problematic & Stateful>

java.lang.Object
java.lang.Record
org.aya.normalize.Finalizer.Zonk<T>
All Implemented Interfaces:
Finalizer, Problematic, Stateful
Enclosing interface:
Finalizer

public static record Finalizer.Zonk<T extends Problematic & Stateful>(T extends Problematic & Stateful delegate, @NotNull kala.collection.mutable.MutableSinglyLinkedList<org.aya.syntax.core.term.Term> stack) extends Record implements Finalizer, Stateful, Problematic
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.aya.normalize.Finalizer

    Finalizer.Freeze, Finalizer.Zonk<T extends Problematic & Stateful>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Zonk(T delegate)
     
    Zonk(T delegate, @NotNull kala.collection.mutable.MutableSinglyLinkedList<org.aya.syntax.core.term.Term> stack)
    Creates an instance of a Zonk record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the delegate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull org.aya.util.reporter.Reporter
     
    @NotNull kala.collection.mutable.MutableSinglyLinkedList<org.aya.syntax.core.term.Term>
    Returns the value of the stack record component.
    @NotNull TyckState
     
    final String
    Returns a string representation of this record class.
    @NotNull org.aya.syntax.core.term.Term
    zonk(@NotNull org.aya.syntax.core.term.Term term)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.aya.normalize.Finalizer

    doZonk

    Methods inherited from interface org.aya.tyck.tycker.Problematic

    fail, fail, fail

    Methods inherited from interface org.aya.tyck.tycker.Stateful

    freezeHoles, solve, whnf
  • Constructor Details

    • Zonk

      public Zonk(@NotNull T delegate)
    • Zonk

      public Zonk(@NotNull T delegate, @NotNull @NotNull kala.collection.mutable.MutableSinglyLinkedList<org.aya.syntax.core.term.Term> stack)
      Creates an instance of a Zonk record class.
      Parameters:
      delegate - the value for the delegate record component
      stack - the value for the stack record component
  • Method Details

    • state

      @NotNull public @NotNull TyckState state()
      Specified by:
      state in interface Finalizer
      Specified by:
      state in interface Stateful
    • reporter

      @NotNull public @NotNull org.aya.util.reporter.Reporter reporter()
      Specified by:
      reporter in interface Problematic
    • zonk

      @NotNull public @NotNull org.aya.syntax.core.term.Term zonk(@NotNull @NotNull org.aya.syntax.core.term.Term term)
      Specified by:
      zonk in interface Finalizer
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • delegate

      @NotNull public T delegate()
      Returns the value of the delegate record component.
      Returns:
      the value of the delegate record component
    • stack

      @NotNull public @NotNull kala.collection.mutable.MutableSinglyLinkedList<org.aya.syntax.core.term.Term> stack()
      Returns the value of the stack record component.
      Returns:
      the value of the stack record component