jline
Interface ArgumentCompletor.ArgumentDelimiter
- ArgumentCompletor.AbstractArgumentDelimiter, ArgumentCompletor.WhitespaceArgumentDelimiter
public static interface ArgumentCompletor.ArgumentDelimiter
ArgumentCompletor.ArgumentList | delimit(String buffer, int argumentPosition) - Break the specified buffer into individual tokens
that can be completed on their own.
|
boolean | isDelimiter(String buffer, int pos) - Returns true if the specified character is a whitespace
parameter.
|
delimit
public ArgumentCompletor.ArgumentList delimit(String buffer,
int argumentPosition)
Break the specified buffer into individual tokens
that can be completed on their own.
buffer
- the buffer to splitargumentPosition
- the current position of the
cursor in the buffer
isDelimiter
public boolean isDelimiter(String buffer,
int pos)
Returns true if the specified character is a whitespace
parameter.
buffer
- the complete command bufferpos
- the index of the character in the buffer
- true if the character should be a delimiter