Record Class ReceiverObjectPath

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.ReceiverObjectPath
Record Components:
objectKey - structural key for the object, stable for provably-same objects (so this.xthis.x, and the same parameter resolves equal) and distinct for different objects (so fromto). Composed into the field-rooted identity stableId in Phase 3b.
provability - whether the object can be placed in a provable global acquisition order — see ObjectProvability.
display - short human-readable rendering of the object expression, for diagnostics and probe output.

public record ReceiverObjectPath(String objectKey, ObjectProvability provability, String display) extends Record
The OBJECT that bears a field-rooted MutexLock at an enter site — i.e. the receiver expression with its terminal lock segment removed (from.balanceLock.enter(…) → object from; holder.getRepo().getLock().enter(…) → object holder.getRepo()). Stage-3 Phase 2 plumbing: computed at the enter site and carried on EnterCallSite so Phase 3b can make the lock identity object-precise and apply the Category-C verdict.
  • Constructor Details

    • ReceiverObjectPath

      public ReceiverObjectPath(String objectKey, ObjectProvability provability, String display)
      Creates an instance of a ReceiverObjectPath record class.
      Parameters:
      objectKey - the value for the objectKey record component
      provability - the value for the provability record component
      display - the value for the display 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.
    • objectKey

      public String objectKey()
      Returns the value of the objectKey record component.
      Returns:
      the value of the objectKey record component
    • provability

      public ObjectProvability provability()
      Returns the value of the provability record component.
      Returns:
      the value of the provability record component
    • display

      public String display()
      Returns the value of the display record component.
      Returns:
      the value of the display record component