Enum Class LineReaderImpl.State

java.lang.Object
java.lang.Enum<LineReaderImpl.State>
org.jline.reader.impl.LineReaderImpl.State
All Implemented Interfaces:
Serializable, Comparable<LineReaderImpl.State>, Constable
Enclosing class:
LineReaderImpl

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

    • NORMAL

      public static final LineReaderImpl.State NORMAL
      The user is just typing away
    • DONE

      public static final LineReaderImpl.State DONE
      readLine should exit and return the buffer content
    • IGNORE

      public static final LineReaderImpl.State IGNORE
      readLine should exit and return empty String
    • EOF

      public static final LineReaderImpl.State EOF
      readLine should exit and throw an EOFException
    • INTERRUPT

      public static final LineReaderImpl.State INTERRUPT
      readLine should exit and throw an UserInterruptException
  • Method Details

    • values

      public static LineReaderImpl.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 LineReaderImpl.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