Module aya.base

Record Class AyaSccTycker

java.lang.Object
java.lang.Record
org.aya.tyck.order.AyaSccTycker
Record Components:
tyckerReuse - headers and bodies should be checked using the same tycker.
All Implemented Interfaces:
org.aya.util.tyck.SCCTycker<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 GenericDef> wellTyped, @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,ExprTycker> tyckerReuse, @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> sampleReporters) extends Record implements org.aya.util.tyck.SCCTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>
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 GenericDef> wellTyped, @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,ExprTycker> tyckerReuse, @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> sampleReporters)
    Creates an instance of a AyaSccTycker record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull AyaSccTycker
    create(ResolveInfo resolveInfo, Trace.Builder builder, @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 kala.collection.immutable.ImmutableSeq<TyckUnit>
    headerOrder(@NotNull kala.collection.immutable.ImmutableSeq<TyckOrder> forError, @NotNull kala.collection.immutable.ImmutableSeq<TyckUnit> stmts)
    Generate the order of dependency of headers, fail if a cycle occurs.
    @NotNull org.aya.util.reporter.CountingReporter
    Returns the value of the reporter record component.
    @NotNull ResolveInfo
    Returns the value of the resolveInfo record component.
    @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter>
    Returns the value of the sampleReporters 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.mutable.MutableMap<Decl.TopLevel,ExprTycker>
    Returns the value of the tyckerReuse record component.
    @NotNull kala.collection.immutable.ImmutableSeq<TyckOrder>
    tyckSCC(@NotNull kala.collection.immutable.ImmutableSeq<TyckOrder> scc)
     
    @NotNull kala.collection.mutable.MutableList<@NotNull GenericDef>
    Returns the value of the wellTyped record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 GenericDef> wellTyped, @NotNull @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,ExprTycker> tyckerReuse, @NotNull @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> sampleReporters)
      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
      tyckerReuse - the value for the tyckerReuse record component
      sampleReporters - the value for the sampleReporters record component
  • Method Details

    • create

      @NotNull public static @NotNull AyaSccTycker create(ResolveInfo resolveInfo, @Nullable Trace.Builder builder, @NotNull @NotNull org.aya.util.reporter.Reporter outReporter)
    • tyckSCC

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<TyckOrder> tyckSCC(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<TyckOrder> scc)
      Specified by:
      tyckSCC in interface org.aya.util.tyck.SCCTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>
    • headerOrder

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<TyckUnit> headerOrder(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<TyckOrder> forError, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<TyckUnit> stmts)
      Generate the order of dependency of headers, fail if a cycle occurs.
    • 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.
      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 GenericDef> wellTyped()
      Returns the value of the wellTyped record component.
      Returns:
      the value of the wellTyped record component
    • tyckerReuse

      @NotNull public @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,ExprTycker> tyckerReuse()
      Returns the value of the tyckerReuse record component.
      Returns:
      the value of the tyckerReuse record component
    • sampleReporters

      @NotNull public @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> sampleReporters()
      Returns the value of the sampleReporters record component.
      Returns:
      the value of the sampleReporters record component