public class OldArgumentCompleter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OldArgumentCompleter.ArgumentList
The result of a delimited buffer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENTS_LIST |
| Constructor and Description |
|---|
OldArgumentCompleter(CommandWithAction function,
String scope,
String name,
boolean scoped) |
| Modifier and Type | Method and Description |
|---|---|
int |
complete(org.apache.karaf.shell.api.console.Session session,
org.apache.karaf.shell.api.console.CommandLine list,
List<String> candidates) |
boolean |
getStrict()
Return whether a completion at argument index N will succees
if all the completions from arguments 0-(N-1) also succeed.
|
boolean |
isDelimiter(String buffer,
int pos)
Return true if the specified character is a whitespace
parameter.
|
boolean |
isDelimiterChar(String buffer,
int pos)
The character is a delimiter if it is whitespace, and the
preceding character is not an escape character.
|
boolean |
isEscaped(String buffer,
int pos) |
void |
setStrict(boolean strict)
If true, a completion at argument index N will only succeed
if all the completions from 0-(N-1) also succeed.
|
protected boolean |
verifyCompleter(Completer completer,
String argument) |
public static final String ARGUMENTS_LIST
public OldArgumentCompleter(CommandWithAction function, String scope, String name, boolean scoped)
public void setStrict(boolean strict)
strict - The new value of the strict flag.public boolean getStrict()
public int complete(org.apache.karaf.shell.api.console.Session session,
org.apache.karaf.shell.api.console.CommandLine list,
List<String> candidates)
public boolean isDelimiter(String buffer, int pos)
isDelimiterChar(java.lang.String, int).buffer - The complete command buffer.pos - The index of the character in the buffer.public boolean isEscaped(String buffer, int pos)
public boolean isDelimiterChar(String buffer, int pos)
buffer - The complete command buffer.pos - The index of the character in the buffer.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.