Record Class TransitiveEnterRecord

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.TransitiveEnterRecord
Record Components:
enterSiteId - FK back to the originating EnterCallSite.
lockIdentityIds - FKs into LockAnalysis.identitiesById() — the set of lock identities at the reaching point (after parameter substitution). Singleton in the common case; grows when substitution at a polymorphic call edge or branch-joined receiver carries multiple possibilities.
pathKind - EdgeKind.SAME_THREAD if every edge on the path is synchronous, EdgeKind.CROSS_THREAD if any edge crosses a thread boundary.

public record TransitiveEnterRecord(String enterSiteId, Set<String> lockIdentityIds, EdgeKind pathKind) extends Record
Single element of a function's mayEnter summary — an enter() site reachable from this function via some call path, with the lock identities after parameter substitution and the composed edge-kind of the reaching path.
  • Constructor Details

    • TransitiveEnterRecord

      public TransitiveEnterRecord(String enterSiteId, Set<String> lockIdentityIds, EdgeKind pathKind)
      Creates an instance of a TransitiveEnterRecord record class.
      Parameters:
      enterSiteId - the value for the enterSiteId record component
      lockIdentityIds - the value for the lockIdentityIds record component
      pathKind - the value for the pathKind record component
  • Method Details

    • 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.
    • enterSiteId

      public String enterSiteId()
      Returns the value of the enterSiteId record component.
      Returns:
      the value of the enterSiteId record component
    • lockIdentityIds

      public Set<String> lockIdentityIds()
      Returns the value of the lockIdentityIds record component.
      Returns:
      the value of the lockIdentityIds record component
    • pathKind

      public EdgeKind pathKind()
      Returns the value of the pathKind record component.
      Returns:
      the value of the pathKind record component