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 (sothis.x≡this.x, and the same parameter resolves equal) and distinct for different objects (sofrom≠to). Composed into the field-rooted identity stableId in Phase 3b.provability- whether the object can be placed in a provable global acquisition order — seeObjectProvability.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 Summary
ConstructorsConstructorDescriptionReceiverObjectPath(String objectKey, ObjectProvability provability, String display) Creates an instance of aReceiverObjectPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectKeyrecord component.Returns the value of theprovabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReceiverObjectPath
Creates an instance of aReceiverObjectPathrecord class.- Parameters:
objectKey- the value for theobjectKeyrecord componentprovability- the value for theprovabilityrecord componentdisplay- the value for thedisplayrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
objectKey
-
provability
Returns the value of theprovabilityrecord component.- Returns:
- the value of the
provabilityrecord component
-
display
-