Module aya.base

Record Class AyaOrgaTycker

java.lang.Object
java.lang.Record
org.aya.tyck.order.AyaOrgaTycker
Record Components:
usageGraph - usage graph of decls (usually the transpose of ResolveInfo.depGraph()). for each (vertex, w) in the graph, the vertex should be tycked first.
All Implemented Interfaces:
org.aya.util.tyck.OrgaTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>

public record AyaOrgaTycker(@NotNull AyaSccTycker sccTycker, @NotNull org.aya.util.terck.MutableGraph<TyckOrder> usageGraph, @NotNull kala.collection.mutable.MutableSet<TyckOrder> skippedSet) extends Record implements org.aya.util.tyck.OrgaTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>
Incremental and non-stopping compiler for SCCs.
  • Constructor Details

    • AyaOrgaTycker

      public AyaOrgaTycker(@NotNull @NotNull AyaSccTycker sccTycker, @NotNull @NotNull ResolveInfo resolveInfo)
    • AyaOrgaTycker

      public AyaOrgaTycker(@NotNull @NotNull AyaSccTycker sccTycker, @NotNull @NotNull org.aya.util.terck.MutableGraph<TyckOrder> usageGraph, @NotNull @NotNull kala.collection.mutable.MutableSet<TyckOrder> skippedSet)
      Creates an instance of a AyaOrgaTycker record class.
      Parameters:
      sccTycker - the value for the sccTycker record component
      usageGraph - the value for the usageGraph record component
      skippedSet - the value for the skippedSet record component
  • Method Details

    • collectUsageOf

      @NotNull public @NotNull Iterable<TyckOrder> collectUsageOf(@NotNull @NotNull TyckOrder failed)
      Specified by:
      collectUsageOf in interface org.aya.util.tyck.OrgaTycker<TyckOrder,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.
    • sccTycker

      @NotNull public @NotNull AyaSccTycker sccTycker()
      Returns the value of the sccTycker record component.
      Specified by:
      sccTycker in interface org.aya.util.tyck.OrgaTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>
      Returns:
      the value of the sccTycker record component
    • usageGraph

      @NotNull public @NotNull org.aya.util.terck.MutableGraph<TyckOrder> usageGraph()
      Returns the value of the usageGraph record component.
      Returns:
      the value of the usageGraph record component
    • skippedSet

      @NotNull public @NotNull kala.collection.mutable.MutableSet<TyckOrder> skippedSet()
      Returns the value of the skippedSet record component.
      Specified by:
      skippedSet in interface org.aya.util.tyck.OrgaTycker<TyckOrder,AyaSccTycker.SCCTyckingFailed>
      Returns:
      the value of the skippedSet record component