Enum Class CloseableArgumentKeeping.Fate

java.lang.Object
java.lang.Enum<CloseableArgumentKeeping.Fate>
org.ek9lang.compiler.phase5.CloseableArgumentKeeping.Fate
All Implemented Interfaces:
Serializable, Comparable<CloseableArgumentKeeping.Fate>, Constable
Enclosing class:
CloseableArgumentKeeping

static enum CloseableArgumentKeeping.Fate extends Enum<CloseableArgumentKeeping.Fate>
What a construction does with the argument it is given at one position - decided only after every source has been walked (CloseableArgumentKeeping.check()).
  • Enum Constant Details

    • TRANSFERS

      public static final CloseableArgumentKeeping.Fate TRANSFERS
      The constructor stores it in a closeable property: a TRANSFER, its holder closes it.
    • KEEPS_OPEN

      public static final CloseableArgumentKeeping.Fate KEEPS_OPEN
      The constructor keeps it some other way (a non-closeable property, a retaining call): it cannot be closed.
    • LOAN

      public static final CloseableArgumentKeeping.Fate LOAN
      The constructor only uses it while it runs: a LOAN, closed by the statement that made it.
    • UNKNOWN

      public static final CloseableArgumentKeeping.Fate UNKNOWN
      Nothing is known: a constructor never walked (a built-in's, a synthesised one), or one that gives the argument to a constructor of that kind - so it is handed on, never closed.
  • Method Details

    • values

      public static CloseableArgumentKeeping.Fate[] 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 CloseableArgumentKeeping.Fate 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