java.lang.Object | |
↳ | jline.console.completer.ArgumentCompleter |
A Completer
implementation that invokes a child completer using the appropriate separator argument.
This can be used instead of the individual completers having to know about argument parsing semantics.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ArgumentCompleter.AbstractArgumentDelimiter | Abstract implementation of a delimiter that uses the isDelimiter(CharSequence, int) method to determine if a particular
character should be used as a delimiter. |
||||||||||
ArgumentCompleter.ArgumentDelimiter | The ArgumentCompleter.ArgumentDelimiter allows custom breaking up of a String into individual
arguments in order to dispatch the arguments to the nested Completer . |
||||||||||
ArgumentCompleter.ArgumentList | The result of a delimited buffer. | ||||||||||
ArgumentCompleter.WhitespaceArgumentDelimiter | ArgumentCompleter.ArgumentDelimiter implementation that counts all whitespace (as reported by
isWhitespace(char) ) as being a delimiter. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new completer with the specified argument delimiter.
| |||||||||||
Create a new completer with the specified argument delimiter.
| |||||||||||
Create a new completer with the default
ArgumentCompleter.WhitespaceArgumentDelimiter . | |||||||||||
Create a new completer with the default
ArgumentCompleter.WhitespaceArgumentDelimiter . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Populates candidates with a list of possible completions for the buffer.
| |||||||||||
Returns whether a completion at argument index N will success
if all the completions from arguments 0-(N-1) also succeed.
| |||||||||||
If true, a completion at argument index N will only succeed
if all the completions from 0-(N-1) also succeed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create a new completer with the specified argument delimiter.
delimiter | The delimiter for parsing arguments |
---|---|
completers | The embedded completers |
Create a new completer with the specified argument delimiter.
delimiter | The delimiter for parsing arguments |
---|---|
completers | The embedded completers |
Create a new completer with the default ArgumentCompleter.WhitespaceArgumentDelimiter
.
completers | The embedded completers |
---|
Create a new completer with the default ArgumentCompleter.WhitespaceArgumentDelimiter
.
completers | The embedded completers |
---|
Populates candidates with a list of possible completions for the buffer. The candidates list will not be sorted before being displayed to the user: thus, the complete method should sort the List before returning.
buffer | The buffer |
---|---|
cursor | The current position of the cursor in the buffer |
candidates | The List of candidates to populate |
Returns whether a completion at argument index N will success if all the completions from arguments 0-(N-1) also succeed.
If true, a completion at argument index N will only succeed if all the completions from 0-(N-1) also succeed.