Record Class FunctionLockSummary
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.lockanalysis.FunctionLockSummary
- Record Components:
function- the function/method symbol this summary describes.directEnters- enter() sites lexically inside this function's body.directKeyBodies- MutexKey bodies lexically inside this function's body.mayEnter- transitive enter records reachable from this function through the call graph (populated by Phase C.2).
public record FunctionLockSummary(ISymbol function, List<EnterCallSite> directEnters, List<MutexKeyBody> directKeyBodies, Set<TransitiveEnterRecord> mayEnter)
extends Record
Per-function summary of lock activity.
directEnters and directKeyBodies are populated by Phase B.1's AST walk —
everything visible inside this function's own body. mayEnter is populated by
Phase C.2's inter-procedural SCC fixpoint and represents everything reachable
transitively, including parameter-substituted identities and composed edge kinds.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionLockSummary(ISymbol function, List<EnterCallSite> directEnters, List<MutexKeyBody> directKeyBodies, Set<TransitiveEnterRecord> mayEnter) Creates an instance of aFunctionLockSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectEntersrecord component.Returns the value of thedirectKeyBodiesrecord component.static FunctionLockSummaryConvenience factory producing an empty summary backed by mutable collections.final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.mayEnter()Returns the value of themayEnterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FunctionLockSummary
public FunctionLockSummary(ISymbol function, List<EnterCallSite> directEnters, List<MutexKeyBody> directKeyBodies, Set<TransitiveEnterRecord> mayEnter) Creates an instance of aFunctionLockSummaryrecord class.- Parameters:
function- the value for thefunctionrecord componentdirectEnters- the value for thedirectEntersrecord componentdirectKeyBodies- the value for thedirectKeyBodiesrecord componentmayEnter- the value for themayEnterrecord component
-
-
Method Details
-
empty
Convenience factory producing an empty summary backed by mutable collections. Phase B.1's AST walk populatesdirectEnters/directKeyBodies; Phase C.2 populatesmayEnter. -
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). -
function
-
directEnters
Returns the value of thedirectEntersrecord component.- Returns:
- the value of the
directEntersrecord component
-
directKeyBodies
Returns the value of thedirectKeyBodiesrecord component.- Returns:
- the value of the
directKeyBodiesrecord component
-
mayEnter
-