Enum Class EdgeKind
- All Implemented Interfaces:
Serializable, Comparable<EdgeKind>, Constable
Classifies a call-graph edge by its threading semantics, per
EK9_CONCURRENCY_MODEL.md §5.2.
Edge composition is monotonic: SAME_THREAD ∘ SAME_THREAD = SAME_THREAD;
any composition involving a CROSS_THREAD edge is CROSS_THREAD.
Once a path crosses a thread boundary it stays crossed for the rest of the chain.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCall that crosses a thread boundary.Synchronous call. -
Method Summary
Modifier and TypeMethodDescriptioncomposeWith(EdgeKind next) Compose this edge kind with another along a call path.static EdgeKindReturns the enum constant of this class with the specified name.static EdgeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAME_THREAD
Synchronous call. Caller and callee run on the same virtual thread; the callee's stack frame sits above the caller's; MutexLock reentrancy applies. -
CROSS_THREAD
Call that crosses a thread boundary. Sources are the concurrent-entry-point primitives inek9-lang:TCP.accept,Signals.register,cat ... | async, UDP stream consumption, and HTTP service operations.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
composeWith
Compose this edge kind with another along a call path.- Parameters:
next- the next edge kind in the path- Returns:
SAME_THREADonly when both areSAME_THREAD, elseCROSS_THREAD
-