Module aya.base

Record Class ClauseTycker

java.lang.Object
java.lang.Record
org.aya.tyck.pat.ClauseTycker
All Implemented Interfaces:
Problematic, Stateful

public record ClauseTycker(@NotNull ExprTycker exprTycker) extends Record implements Problematic, Stateful
  • Constructor Details

    • ClauseTycker

      public ClauseTycker(@NotNull @NotNull ExprTycker exprTycker)
      Creates an instance of a ClauseTycker record class.
      Parameters:
      exprTycker - the value for the exprTycker record component
  • Method Details

    • checkAllLhs

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> checkAllLhs(@Nullable @Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, @NotNull @NotNull org.aya.syntax.core.def.Signature signature, @NotNull @NotNull kala.collection.SeqView<org.aya.syntax.concrete.Pattern.Clause> clauses, boolean isFn)
    • checkAllRhs

      @NotNull public @NotNull ClauseTycker.TyckResult checkAllRhs(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> lhsResults)
    • reporter

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

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

      @NotNull public @NotNull ClauseTycker.LhsResult checkLhs(@NotNull @NotNull org.aya.syntax.core.def.Signature signature, @Nullable @Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, @NotNull org.aya.syntax.concrete.Pattern.Clause clause, boolean isFn)
    • 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.
    • exprTycker

      @NotNull public @NotNull ExprTycker exprTycker()
      Returns the value of the exprTycker record component.
      Returns:
      the value of the exprTycker record component