Enum Class EnterKind

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

public enum EnterKind extends Enum<EnterKind>
Distinguishes the two variants of MutexLock acquisition: blocking enter() vs non-blocking tryEnter().
  • Enum Constant Details

    • ENTER

      public static final EnterKind ENTER
    • TRY_ENTER

      public static final EnterKind TRY_ENTER
  • Method Details

    • values

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