java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.interpreter.CommandParameter |
Definition of a command's parameter. Each parameter can have a small description and be defined as prefixed or not: for example "-r" is a prefix with no name, "-t threadId" is a prefix with name and "thread" is a name without prefix.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CommandParameter(String name) | |||||||||||
CommandParameter(String name, boolean optional) | |||||||||||
CommandParameter(String name, String help, boolean optional) | |||||||||||
CommandParameter(String prefix, String name, String help, boolean optional) | |||||||||||
CommandParameter(String name, String help, boolean optional, boolean allowMultipleTokens) | |||||||||||
CommandParameter(String name, String help, boolean optional, boolean allowMultipleTokens, IAutocompleteListProvider autocompleteProvider) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | allowMultipleTokens() | ||||||||||
IAutocompleteListProvider | getAutocompleteProvider() | ||||||||||
String |
getHelp()
Help text
| ||||||||||
String |
getName()
Name of the parameter.
| ||||||||||
String |
getPrefix()
Short prefix (one letter by preference)
| ||||||||||
boolean | hasPrefix() | ||||||||||
boolean |
isOptional()
Whether parameter is optional or mandatory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Help text
Name of the parameter. Can be empty only if parameter is a meaningful standalone prefix ("-r" for recursive for example)
Short prefix (one letter by preference)
Whether parameter is optional or mandatory.