public class ArgumentCompleter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentCompleter.ProxyServiceCompleter |
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENTS_LIST |
static String |
COMMANDS |
| Constructor and Description |
|---|
ArgumentCompleter(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()
Returns 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)
Returns 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
preceeding 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 static final String COMMANDS
public ArgumentCompleter(CommandWithAction function, String scope, String name, boolean scoped)
public void setStrict(boolean strict)
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 bufferpos - the index of the character in the bufferpublic boolean isEscaped(String buffer, int pos)
public boolean isDelimiterChar(String buffer, int pos)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.