Module aya.base

Record Class AyaSccTycker

java.lang.Object
java.lang.Record
org.aya.tyck.order.AyaSccTycker
All Implemented Interfaces:
Problematic, org.aya.util.tyck.SCCTycker<org.aya.generic.stmt.TyckOrder,AyaSccTycker.SCCTyckingFailed>

public record AyaSccTycker(@NotNull StmtTycker tycker, @NotNull org.aya.util.reporter.CountingReporter reporter, @NotNull ResolveInfo resolveInfo, @NotNull kala.collection.mutable.MutableList<@NotNull org.aya.syntax.core.def.TyckDef> wellTyped) extends Record implements org.aya.util.tyck.SCCTycker<org.aya.generic.stmt.TyckOrder,AyaSccTycker.SCCTyckingFailed>, Problematic
Tyck statements in SCC.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AyaSccTycker(@NotNull StmtTycker tycker, @NotNull org.aya.util.reporter.CountingReporter reporter, @NotNull ResolveInfo resolveInfo, @NotNull kala.collection.mutable.MutableList<@NotNull org.aya.syntax.core.def.TyckDef> wellTyped)
    Creates an instance of a AyaSccTycker record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull AyaSccTycker
    create(ResolveInfo info, @NotNull org.aya.util.reporter.Reporter outReporter)
     
    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.CountingReporter
    Returns the value of the reporter record component.
    @NotNull ResolveInfo
    Returns the value of the resolveInfo record component.
    final String
    Returns a string representation of this record class.
    @NotNull StmtTycker
    Returns the value of the tycker record component.
    @NotNull kala.collection.immutable.ImmutableSeq<org.aya.generic.stmt.TyckOrder>
    tyckSCC(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.generic.stmt.TyckOrder> scc)
     
    @NotNull kala.collection.mutable.MutableList<@NotNull org.aya.syntax.core.def.TyckDef>
    Returns the value of the wellTyped record component.

    Methods inherited from class java.lang.Object

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

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

    fail, fail, fail
  • Constructor Details

    • AyaSccTycker

      public AyaSccTycker(@NotNull @NotNull StmtTycker tycker, @NotNull @NotNull org.aya.util.reporter.CountingReporter reporter, @NotNull @NotNull ResolveInfo resolveInfo, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull org.aya.syntax.core.def.TyckDef> wellTyped)
      Creates an instance of a AyaSccTycker record class.
      Parameters:
      tycker - the value for the tycker record component
      reporter - the value for the reporter record component
      resolveInfo - the value for the resolveInfo record component
      wellTyped - the value for the wellTyped record component
  • Method Details

    • create

      @NotNull public static @NotNull AyaSccTycker create(ResolveInfo info, @NotNull @NotNull org.aya.util.reporter.Reporter outReporter)
    • tyckSCC

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.generic.stmt.TyckOrder> tyckSCC(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.generic.stmt.TyckOrder> scc) throws AyaSccTycker.SCCTyckingFailed
      Specified by:
      tyckSCC in interface org.aya.util.tyck.SCCTycker<org.aya.generic.stmt.TyckOrder,AyaSccTycker.SCCTyckingFailed>
      Throws:
      AyaSccTycker.SCCTyckingFailed
    • 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.
    • tycker

      @NotNull public @NotNull StmtTycker tycker()
      Returns the value of the tycker record component.
      Returns:
      the value of the tycker record component
    • reporter

      @NotNull public @NotNull org.aya.util.reporter.CountingReporter reporter()
      Returns the value of the reporter record component.
      Specified by:
      reporter in interface Problematic
      Returns:
      the value of the reporter record component
    • resolveInfo

      @NotNull public @NotNull ResolveInfo resolveInfo()
      Returns the value of the resolveInfo record component.
      Returns:
      the value of the resolveInfo record component
    • wellTyped

      @NotNull public @NotNull kala.collection.mutable.MutableList<@NotNull org.aya.syntax.core.def.TyckDef> wellTyped()
      Returns the value of the wellTyped record component.
      Returns:
      the value of the wellTyped record component