public class AeshCommandLineCompletionParser extends java.lang.Object implements CommandLineCompletionParser
| Modifier and Type | Field and Description |
|---|---|
private AeshCommandLineParser<? extends Command> |
parser |
| Constructor and Description |
|---|
AeshCommandLineCompletionParser(AeshCommandLineParser<? extends Command> parser) |
| Modifier and Type | Method and Description |
|---|---|
private void |
completionSetOffSet(ParsedCompleteObject completeObject,
CompleteOperation completeOperation,
CompleterInvocation completions) |
private ParsedCompleteObject |
endsWithSpace(java.lang.String line) |
ParsedCompleteObject |
findCompleteObject(java.lang.String line,
int cursor)
1.
|
private ParsedCompleteObject |
findCompleteObjectValue(java.lang.String line,
boolean endsWithSpace)
Only called when we know that the last word is an option value
If endsWithSpace is true we set the value to an empty string to indicate a value
|
private CommandLineCompletionParser |
getCorrectCompletionParser(java.lang.String line) |
void |
injectValuesAndComplete(ParsedCompleteObject completeObject,
CompleteOperation completeOperation,
InvocationProviders invocationProviders) |
private ParsedCompleteObject |
optionFinder(java.lang.String line) |
private final AeshCommandLineParser<? extends Command> parser
public AeshCommandLineCompletionParser(AeshCommandLineParser<? extends Command> parser)
public ParsedCompleteObject findCompleteObject(java.lang.String line, int cursor) throws CommandLineParserException
findCompleteObject in interface CommandLineCompletionParserline - bufferCommandLineParserExceptionprivate ParsedCompleteObject endsWithSpace(java.lang.String line) throws CommandLineParserException
CommandLineParserExceptionprivate ParsedCompleteObject optionFinder(java.lang.String line) throws CommandLineParserException
CommandLineParserExceptionprivate ParsedCompleteObject findCompleteObjectValue(java.lang.String line, boolean endsWithSpace) throws CommandLineParserException
CommandLineParserExceptionpublic void injectValuesAndComplete(ParsedCompleteObject completeObject, CompleteOperation completeOperation, InvocationProviders invocationProviders)
injectValuesAndComplete in interface CommandLineCompletionParserprivate void completionSetOffSet(ParsedCompleteObject completeObject, CompleteOperation completeOperation, CompleterInvocation completions)
private CommandLineCompletionParser getCorrectCompletionParser(java.lang.String line)