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
What a construction does with the argument it is given at one position - decided only after every source has
been walked (
CloseableArgumentKeeping.check()).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe constructor keeps it some other way (a non-closeable property, a retaining call): it cannot be closed.The constructor only uses it while it runs: a LOAN, closed by the statement that made it.The constructor stores it in a closeable property: a TRANSFER, its holder closes it.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 Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CloseableArgumentKeeping.Fate[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRANSFERS
The constructor stores it in a closeable property: a TRANSFER, its holder closes it. -
KEEPS_OPEN
The constructor keeps it some other way (a non-closeable property, a retaining call): it cannot be closed. -
LOAN
The constructor only uses it while it runs: a LOAN, closed by the statement that made it. -
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
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
-