Module Simula

Enum Class RTS_File._CreateAction

java.lang.Object
java.lang.Enum<RTS_File._CreateAction>
simula.runtime.RTS_File._CreateAction
All Implemented Interfaces:
Serializable, Comparable<RTS_File._CreateAction>, Constable
Enclosing class:
RTS_File

protected static enum RTS_File._CreateAction extends Enum<RTS_File._CreateAction>
CREATE: Action is performed at 'open'

If the value is "create", the external file associated with FILENAME must not exist at "open" (if it does, "open" returns false); a new file is created by the environment. If the value is "nocreate", the associated file must exist at "open". The value "anycreate" implies that if the file does exist at "open" the file is opened, otherwise a new file is created.

  • Enum Constant Details

    • NA

      public static final RTS_File._CreateAction NA
      not applicable
    • noCreate

      public static final RTS_File._CreateAction noCreate
      the associated file must exist at "open"
    • create

      public static final RTS_File._CreateAction create
      the external file associated with FILENAME must not exist at "open"
    • anyCreate

      public static final RTS_File._CreateAction anyCreate
      if the file does exist at "open" the file is opened, otherwise a new file is created
  • Constructor Details

    • _CreateAction

      private _CreateAction()
  • Method Details

    • values

      public static RTS_File._CreateAction[] 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 RTS_File._CreateAction 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