Enum Class CompletionBehaviour
- All Implemented Interfaces:
Serializable
,Comparable<CompletionBehaviour>
,Constable
Possible completion behaviour for options/arguments
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the completions from the option meta-data (if any) but treat them as if they were directory names for additional completionUse the completions from the option meta-data (if any) but treat them as if they were filenames for additional completionCommands from the CLI for which we are providing completionsDirectories, use standard directory name completion if no other completions applyFilenames, use standard filename completion if no other completions applyNone, either this is a flag option i.e.OS System commands -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionBehaviour
Returns the enum constant of this class with the specified name.static CompletionBehaviour[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
None, either this is a flag option i.e. arity zero or you want to limit completions to those specified by the option meta-data -
FILENAMES
Filenames, use standard filename completion if no other completions apply -
DIRECTORIES
Directories, use standard directory name completion if no other completions apply -
AS_FILENAMES
Use the completions from the option meta-data (if any) but treat them as if they were filenames for additional completion -
AS_DIRECTORIES
Use the completions from the option meta-data (if any) but treat them as if they were directory names for additional completion -
CLI_COMMANDS
Commands from the CLI for which we are providing completions -
SYSTEM_COMMANDS
OS System commands
-
-
Constructor Details
-
CompletionBehaviour
private CompletionBehaviour()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-