@Deprecated public class ArgumentCompleter extends Object implements Completer
| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentCompleter.ArgumentList
Deprecated.
The result of a delimited buffer.
|
static class |
ArgumentCompleter.ProxyServiceCompleter
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENTS_LIST
Deprecated.
|
static String |
COMMANDS
Deprecated.
|
| Constructor and Description |
|---|
ArgumentCompleter(org.apache.felix.service.command.CommandSession session,
CommandWithAction function,
String command)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
complete(String buffer,
int cursor,
List<String> candidates)
Deprecated.
|
ArgumentCompleter.ArgumentList |
delimit(String buffer,
int cursor)
Deprecated.
|
boolean |
getStrict()
Deprecated.
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)
Deprecated.
Returns true if the specified character is a whitespace
parameter.
|
boolean |
isDelimiterChar(String buffer,
int pos)
Deprecated.
The character is a delimiter if it is whitespace, and the
preceeding character is not an escape character.
|
boolean |
isEscaped(String buffer,
int pos)
Deprecated.
|
void |
setStrict(boolean strict)
Deprecated.
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)
Deprecated.
|
public static final String ARGUMENTS_LIST
public static final String COMMANDS
public ArgumentCompleter(org.apache.felix.service.command.CommandSession session,
CommandWithAction function,
String command)
public void setStrict(boolean strict)
public boolean getStrict()
public ArgumentCompleter.ArgumentList delimit(String buffer, int cursor)
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.