Package org.jline.console.impl
Enum Builtins.Command
- java.lang.Object
-
- java.lang.Enum<Builtins.Command>
-
- org.jline.console.impl.Builtins.Command
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Builtins.Command>
- Enclosing class:
- Builtins
public static enum Builtins.Command extends java.lang.Enum<Builtins.Command>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Command()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Builtins.Command
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Builtins.Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NANO
public static final Builtins.Command NANO
-
LESS
public static final Builtins.Command LESS
-
HISTORY
public static final Builtins.Command HISTORY
-
WIDGET
public static final Builtins.Command WIDGET
-
KEYMAP
public static final Builtins.Command KEYMAP
-
SETOPT
public static final Builtins.Command SETOPT
-
SETVAR
public static final Builtins.Command SETVAR
-
UNSETOPT
public static final Builtins.Command UNSETOPT
-
TTOP
public static final Builtins.Command TTOP
-
-
Method Detail
-
values
public static Builtins.Command[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Builtins.Command c : Builtins.Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Builtins.Command valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-