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 -
Constructor Summary
ConstructorsConstructorDescriptionAyaSccTycker(@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 aAyaSccTyckerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull AyaSccTyckercreate(ResolveInfo resolveInfo, Trace.Builder builder, @NotNull org.aya.util.reporter.Reporter outReporter) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()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.CountingReporterreporter()Returns the value of thereporterrecord component.@NotNull ResolveInfoReturns the value of theresolveInforecord component.@NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> Returns the value of thesampleReportersrecord component.final StringtoString()Returns a string representation of this record class.@NotNull StmtTyckertycker()Returns the value of thetyckerrecord component.@NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,ExprTycker> Returns the value of thetyckerReuserecord component.@NotNull kala.collection.immutable.ImmutableSeq<TyckOrder>@NotNull kala.collection.mutable.MutableList<@NotNull GenericDef>Returns the value of thewellTypedrecord component.
-
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 aAyaSccTyckerrecord class.- Parameters:
tycker- the value for thetyckerrecord componentreporter- the value for thereporterrecord componentresolveInfo- the value for theresolveInforecord componentwellTyped- the value for thewellTypedrecord componenttyckerReuse- the value for thetyckerReuserecord componentsampleReporters- the value for thesampleReportersrecord 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:
tyckSCCin interfaceorg.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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
tycker
Returns the value of thetyckerrecord component.- Returns:
- the value of the
tyckerrecord component
-
reporter
@NotNull public @NotNull org.aya.util.reporter.CountingReporter reporter()Returns the value of thereporterrecord component.- Returns:
- the value of the
reporterrecord component
-
resolveInfo
Returns the value of theresolveInforecord component.- Returns:
- the value of the
resolveInforecord component
-
wellTyped
Returns the value of thewellTypedrecord component.- Returns:
- the value of the
wellTypedrecord component
-
tyckerReuse
Returns the value of thetyckerReuserecord component.- Returns:
- the value of the
tyckerReuserecord component
-
sampleReporters
@NotNull public @NotNull kala.collection.mutable.MutableMap<Decl.TopLevel,org.aya.util.reporter.CollectingReporter> sampleReporters()Returns the value of thesampleReportersrecord component.- Returns:
- the value of the
sampleReportersrecord component
-