Modifier and Type | Class and Description |
---|---|
static class |
ArgumentCompleter.ArgumentList
The result of a delimited buffer.
|
Modifier and Type | Field and Description |
---|---|
static String |
ARGUMENTS_LIST |
Constructor and Description |
---|
ArgumentCompleter(org.apache.felix.service.command.CommandSession session,
AbstractCommand function,
String command) |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int cursor,
List<String> candidates) |
ArgumentCompleter.ArgumentList |
delimit(String buffer,
int cursor) |
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 ArgumentCompleter(org.apache.felix.service.command.CommandSession session, AbstractCommand 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–2016 The Apache Software Foundation. All rights reserved.