Module aya.base

Record Class SeqLocalCtx

java.lang.Object
java.lang.Record
org.aya.tyck.env.SeqLocalCtx
All Implemented Interfaces:
LocalCtx

public record SeqLocalCtx(@NotNull kala.collection.mutable.MutableList<SeqLocalCtx.P> localSeq, @Nullable LocalCtx parent) extends Record implements LocalCtx
  • Constructor Details

    • SeqLocalCtx

      public SeqLocalCtx()
    • SeqLocalCtx

      public SeqLocalCtx(@NotNull @NotNull kala.collection.mutable.MutableList<SeqLocalCtx.P> localSeq, @Nullable @Nullable LocalCtx parent)
      Creates an instance of a SeqLocalCtx record class.
      Parameters:
      localSeq - the value for the localSeq record component
      parent - the value for the parent record component
  • Method Details

    • remove

      public void remove(@NotNull @NotNull kala.collection.SeqView<LocalVar> vars)
      Specified by:
      remove in interface LocalCtx
    • extractToLocal

      public void extractToLocal(@NotNull @NotNull kala.collection.mutable.MutableList<Term.Param> dest)
      Specified by:
      extractToLocal in interface LocalCtx
    • getLocal

      @Nullable public @Nullable Term getLocal(@NotNull @NotNull LocalVar var)
      Specified by:
      getLocal in interface LocalCtx
    • put

      public void put(@NotNull @NotNull LocalVar var, @NotNull @NotNull Term term)
      Specified by:
      put in interface LocalCtx
    • isMeEmpty

      public boolean isMeEmpty()
      Specified by:
      isMeEmpty in interface LocalCtx
    • modifyMyTerms

      public void modifyMyTerms(@NotNull @NotNull UnaryOperator<Term> u)
      Specified by:
      modifyMyTerms in interface LocalCtx
    • 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.
    • localSeq

      @NotNull public @NotNull kala.collection.mutable.MutableList<SeqLocalCtx.P> localSeq()
      Returns the value of the localSeq record component.
      Returns:
      the value of the localSeq record component
    • parent

      @Nullable public @Nullable LocalCtx parent()
      Returns the value of the parent record component.
      Specified by:
      parent in interface LocalCtx
      Returns:
      the value of the parent record component