Package org.jline.builtins
Class Completers.OptDesc
java.lang.Object
org.jline.builtins.Completers.OptDesc
- Enclosing class:
Completers
-
Constructor Summary
ModifierConstructorDescriptionprotected
OptDesc()
Command option description.Command option description.Command option description.Command option description. -
Method Summary
Modifier and TypeMethodDescriptionprotected static List
<Completers.OptDesc> protected void
completeOption
(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, boolean longOpt) protected boolean
completeValue
(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, String curBuf, String partialValue) protected boolean
hasValue()
protected boolean
void
setValueCompleter
(Completer valueCompleter) protected boolean
startsWith
(String option) protected Completer
-
Constructor Details
-
OptDesc
Command option description. If option does not have short/long option assign to it null value. If option does not have value set valueCompleter = NullCompleter.INSTANCE- Parameters:
shortOption
- short optionlongOption
- long optiondescription
- short option descriptionvalueCompleter
- option value completer
-
OptDesc
Command option description. If option does not have short/long option assign to it null value. If option does not have value set valueCompleter = NullCompleter.INSTANCE- Parameters:
shortOption
- short optionlongOption
- long optionvalueCompleter
- option value completer
-
OptDesc
Command option description. If option does not have short/long option assign to it null value.- Parameters:
shortOption
- short optionlongOption
- long optiondescription
- short option description
-
OptDesc
Command option description. If option does not have short/long option assign to it null value.- Parameters:
shortOption
- short optionlongOption
- long option
-
OptDesc
protected OptDesc()
-
-
Method Details
-
compile
protected static List<Completers.OptDesc> compile(Map<String, List<String>> optionValues, Collection<String> options) -
setValueCompleter
-
longOption
-
shortOption
-
description
-
hasValue
protected boolean hasValue() -
valueCompleter
-
completeOption
protected void completeOption(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, boolean longOpt) -
completeValue
protected boolean completeValue(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, String curBuf, String partialValue) -
match
-
startsWith
-