Enum Class IdentityOrigin

java.lang.Object
java.lang.Enum<IdentityOrigin>
org.ek9lang.compiler.phase5.lockanalysis.IdentityOrigin
All Implemented Interfaces:
Serializable, Comparable<IdentityOrigin>, Constable

public enum IdentityOrigin extends Enum<IdentityOrigin>
Classifies where a lock-identity descriptor originates. Used for both presentation (IDE rendering of the lock catalogue) and downstream analysis routing.
  • Enum Constant Details

    • FIELD_ROOTED

      public static final IdentityOrigin FIELD_ROOTED
      Lock lives as a field of a class or component (e.g. this.lockField).
    • ALLOCATION

      public static final IdentityOrigin ALLOCATION
      Lock minted at a MutexLock(...) constructor call site.
    • PARAMETER

      public static final IdentityOrigin PARAMETER
      Lock arrives as a MutexLock of T function/method parameter.
    • CAPTURE

      public static final IdentityOrigin CAPTURE
      Lock captured into a dynamic function via (lock) is FuncType as function.
  • Method Details

    • values

      public static IdentityOrigin[] 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

      public static IdentityOrigin valueOf(String name)
      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 name
      NullPointerException - if the argument is null