Record Class TransitiveEnterRecord
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.TransitiveEnterRecord
- Record Components:
enterSiteId- FK back to the originatingEnterCallSite.lockIdentityIds- FKs intoLockAnalysis.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_THREADif every edge on the path is synchronous,EdgeKind.CROSS_THREADif 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 Summary
ConstructorsConstructorDescriptionTransitiveEnterRecord(String enterSiteId, Set<String> lockIdentityIds, EdgeKind pathKind) Creates an instance of aTransitiveEnterRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenterSiteIdrecord 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 thelockIdentityIdsrecord component.pathKind()Returns the value of thepathKindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransitiveEnterRecord
Creates an instance of aTransitiveEnterRecordrecord class.- Parameters:
enterSiteId- the value for theenterSiteIdrecord componentlockIdentityIds- the value for thelockIdentityIdsrecord componentpathKind- the value for thepathKindrecord 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). -
enterSiteId
Returns the value of theenterSiteIdrecord component.- Returns:
- the value of the
enterSiteIdrecord component
-
lockIdentityIds
Returns the value of thelockIdentityIdsrecord component.- Returns:
- the value of the
lockIdentityIdsrecord component
-
pathKind
-