Package org.jline.builtins
Class Completers.OptDesc
java.lang.Object
org.jline.builtins.Completers.OptDesc
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOptDesc()Command option description.Command option description.Command option description.Command option description. -
Method Summary
Modifier and TypeMethodDescriptionprotected static List<Completers.OptDesc> protected voidcompleteOption(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, boolean longOpt) protected booleancompleteValue(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, String curBuf, String partialValue) protected booleanhasValue()protected booleanvoidsetValueCompleter(Completer valueCompleter) protected booleanstartsWith(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
-
OptDesc
-
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
-