Package jline.console
Enum ConsoleReader.State
- All Implemented Interfaces:
Serializable
,Comparable<ConsoleReader.State>
,java.lang.constant.Constable
- Enclosing class:
ConsoleReader
Possible states in which the current readline operation may be in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user is just typing awayIn the middle of a emacs seachVI "change-to" operation ("c" during move mode)VI "delete-to" operation ("d" during move mode)VI "yank-to" operation ("y" during move mode) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsoleReader.State
Returns the enum constant of this type with the specified name.static ConsoleReader.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL
The user is just typing away -
SEARCH
In the middle of a emacs seach -
FORWARD_SEARCH
-
VI_YANK_TO
VI "yank-to" operation ("y" during move mode) -
VI_DELETE_TO
VI "delete-to" operation ("d" during move mode) -
VI_CHANGE_TO
VI "change-to" operation ("c" during move mode)
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-