Record Class LockPrecedenceGraph.Edge
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.LockPrecedenceGraph.Edge
- Record Components:
outerLockId- stableId of the outer-held lock.innerLockId- stableId of the lock acquired while outer is held.innerCallLocation- source token of the inner enter() call site — where the cycle diagnostic should fire.outerSiteId- stableId of the outer EnterCallSite — lets consumers find the contributing outer-site too.
- All Implemented Interfaces:
Serializable
- Enclosing class:
LockPrecedenceGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerCallLocationrecord component.Returns the value of theinnerLockIdrecord component.Returns the value of theouterLockIdrecord component.Returns the value of theouterSiteIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Edge
Creates an instance of aEdgerecord class.- Parameters:
outerLockId- the value for theouterLockIdrecord componentinnerLockId- the value for theinnerLockIdrecord componentinnerCallLocation- the value for theinnerCallLocationrecord componentouterSiteId- the value for theouterSiteIdrecord 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). -
outerLockId
Returns the value of theouterLockIdrecord component.- Returns:
- the value of the
outerLockIdrecord component
-
innerLockId
Returns the value of theinnerLockIdrecord component.- Returns:
- the value of the
innerLockIdrecord component
-
innerCallLocation
Returns the value of theinnerCallLocationrecord component.- Returns:
- the value of the
innerCallLocationrecord component
-
outerSiteId
Returns the value of theouterSiteIdrecord component.- Returns:
- the value of the
outerSiteIdrecord component
-