Enum VariableValues
- All Implemented Interfaces:
Serializable, Comparable<VariableValues>, java.lang.constant.Constable
Defines the allowed values for each readline configuration variable.
- Author:
- Ståle W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBell style values: none, visible, audible.Bind TTY special chars: on/off.Comment begin string (free-form).Completion display width (numeric).Completion ignore case: on/off.Completion map case: on/off.Completion prefix display length (numeric).Completion query items threshold (numeric).Convert meta characters: on/off.Disable completion: on/off.Echo control characters: on/off.Editing mode: vi or emacs.Enable keypad: on/off.Expand tilde: on/off.History preserve point: on/off.History scroll mode: on/off.History size (numeric).Input meta: on/off.Isearch terminators (free-form).Keymap names for different editing contexts.Mark directories: on/off.Mark modified lines: on/off.Mark symlinked directories: on/off.Match hidden files: on/off.Menu complete display prefix: on/off.Output meta: on/off.Page completions: on/off.Print completions horizontally: on/off.Revert all at newline: on/off.Show all if ambiguous: on/off.Show all if unmodified: on/off.Skip completed text: on/off.Visible stats: on/off. -
Method Summary
Modifier and TypeMethodDescriptiongetValuesByVariable(Variable variable) Get the allowed values for a given variable.booleanhasValue()Check if this variable has defined values.static VariableValuesReturns the enum constant of this type with the specified name.static VariableValues[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BELL_STYLE
Bell style values: none, visible, audible. -
BIND_TTY_SPECIAL_CHARS
Bind TTY special chars: on/off. -
COMMENT_BEGIN
Comment begin string (free-form). -
COMPLETION_DISPLAY_WIDTH
Completion display width (numeric). -
COMPLETION_IGNORE_CASE
Completion ignore case: on/off. -
COMPLETION_MAP_CASE
Completion map case: on/off. -
COMPLETION_PREFIX_DISPLAY_LENGTH
Completion prefix display length (numeric). -
COMPLETION_QUERY_ITEMS
Completion query items threshold (numeric). -
CONVERT_META
Convert meta characters: on/off. -
DISABLE_COMPLETION
Disable completion: on/off. -
EDITING_MODE
Editing mode: vi or emacs. -
ECHO_CONTROL_CHARACTERS
Echo control characters: on/off. -
ENABLE_KEYPAD
Enable keypad: on/off. -
EXPAND_TILDE
Expand tilde: on/off. -
HISTORY_PRESERVE_POINT
History preserve point: on/off. -
HISTORY_SIZE
History size (numeric). -
HISTORY_SCROLL_MODE
History scroll mode: on/off. -
INPUT_META
Input meta: on/off. -
ISEARCH_TERMINATORS
Isearch terminators (free-form). -
KEYMAP
Keymap names for different editing contexts. -
MARK_DIRECTORIES
Mark directories: on/off. -
MARK_MODIFIED_LINES
Mark modified lines: on/off. -
MARK_SYMLINKED_DIRECTORIES
Mark symlinked directories: on/off. -
MATCH_HIDDEN_FILES
Match hidden files: on/off. -
MENU_COMPLETE_DISPLAY_PREFIX
Menu complete display prefix: on/off. -
OUTPUT_META
Output meta: on/off. -
PAGE_COMPLETIONS
Page completions: on/off. -
PRINT_COMPLETIONS_HORIZONTALLY
Print completions horizontally: on/off. -
REVERT_ALL_AT_NEWLINE
Revert all at newline: on/off. -
SHOW_ALL_IF_AMBIGUOUS
Show all if ambiguous: on/off. -
SHOW_ALL_IF_UNMODIFIED
Show all if unmodified: on/off. -
SKIP_COMPLETED_TEXT
Skip completed text: on/off. -
VISIBLE_STATS
Visible stats: on/off.
-
-
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
-
getValuesByVariable
-
hasValue
public boolean hasValue()Check if this variable has defined values.- Returns:
- true if there are allowed values defined
-