Record Class EnterCallSite
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.EnterCallSite
- Record Components:
stableId- wire-form identifier — derived fromenclosingFunctionFqn + callLocation. Used as foreign-key value inDeadlockChainsteps andTransitiveEnterRecord.enclosingFunction- the function/method containing this call. Navigation target for "jump to the enclosing function declaration."callLocation- source token of theenter()call expression itself. Navigation target for "jump to the enter() call site."lockIdentityIds- FKs intoLockAnalysis.identitiesById()— the set of lock identities this enter() may acquire. In the common case the set is a singleton; branch joins, polymorphic-getter resolution, and call-site argument substitution can introduce multi-element sets. C.3 iterates outer × inner cross-product when applying the deadlock verdict.receiverDisplayForm- pre-rendered receiver expression for one-line display, e.g."this.lockedAddressSet","args.outerLock".kind-EnterKind.ENTERorEnterKind.TRY_ENTER.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallLocationrecord component.Returns the value of theenclosingFunctionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thelockIdentityIdsrecord component.Returns the value of thereceiverDisplayFormrecord component.Convenience for the common singleton case.stableId()Returns the value of thestableIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnterCallSite
public EnterCallSite(String stableId, ISymbol enclosingFunction, IToken callLocation, Set<String> lockIdentityIds, String receiverDisplayForm, EnterKind kind) Creates an instance of aEnterCallSiterecord class.- Parameters:
stableId- the value for thestableIdrecord componentenclosingFunction- the value for theenclosingFunctionrecord componentcallLocation- the value for thecallLocationrecord componentlockIdentityIds- the value for thelockIdentityIdsrecord componentreceiverDisplayForm- the value for thereceiverDisplayFormrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
singleLockIdentityId
Convenience for the common singleton case. Returns the sole identity or throws if the set is empty / multi-element. UselockIdentityIds()when iterating possibilities is required. -
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). -
stableId
-
enclosingFunction
Returns the value of theenclosingFunctionrecord component.- Returns:
- the value of the
enclosingFunctionrecord component
-
callLocation
Returns the value of thecallLocationrecord component.- Returns:
- the value of the
callLocationrecord component
-
lockIdentityIds
Returns the value of thelockIdentityIdsrecord component.- Returns:
- the value of the
lockIdentityIdsrecord component
-
receiverDisplayForm
Returns the value of thereceiverDisplayFormrecord component.- Returns:
- the value of the
receiverDisplayFormrecord component
-
kind
-