Package org.jline.shell.widget
Enum CommandTailTipWidgets.TipType
- java.lang.Object
-
- java.lang.Enum<CommandTailTipWidgets.TipType>
-
- org.jline.shell.widget.CommandTailTipWidgets.TipType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommandTailTipWidgets.TipType>
- Enclosing class:
- CommandTailTipWidgets
public static enum CommandTailTipWidgets.TipType extends java.lang.Enum<CommandTailTipWidgets.TipType>
The type of suggestions to display.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandTailTipWidgets.TipTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandTailTipWidgets.TipType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TAIL_TIP
public static final CommandTailTipWidgets.TipType TAIL_TIP
Show positional argument descriptions as tail-tips.
-
COMPLETER
public static final CommandTailTipWidgets.TipType COMPLETER
Show completer-driven suggestions.
-
COMBINED
public static final CommandTailTipWidgets.TipType COMBINED
Show argument descriptions if available, otherwise completer suggestions.
-
-
Method Detail
-
values
public static CommandTailTipWidgets.TipType[] 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 (CommandTailTipWidgets.TipType c : CommandTailTipWidgets.TipType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandTailTipWidgets.TipType 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
-
-