Package jline.console

Enum Class ConsoleReader.State

java.lang.Object
java.lang.Enum<ConsoleReader.State>
jline.console.ConsoleReader.State
All Implemented Interfaces:
Serializable, Comparable<ConsoleReader.State>, Constable
Enclosing class:
ConsoleReader

private static enum ConsoleReader.State extends Enum<ConsoleReader.State>
Possible states in which the current readline operation may be in.
  • Enum Constant Details

    • NORMAL

      public static final ConsoleReader.State NORMAL
      The user is just typing away
    • VI_YANK_TO

      public static final ConsoleReader.State VI_YANK_TO
      VI "yank-to" operation ("y" during move mode)
    • VI_DELETE_TO

      public static final ConsoleReader.State VI_DELETE_TO
      VI "delete-to" operation ("d" during move mode)
    • VI_CHANGE_TO

      public static final ConsoleReader.State VI_CHANGE_TO
      VI "change-to" operation ("c" during move mode)
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static ConsoleReader.State[] 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 ConsoleReader.State 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