public abstract static class ArgumentCompletor.AbstractArgumentDelimiter extends java.lang.Object implements ArgumentCompletor.ArgumentDelimiter
isDelimiter(java.lang.String, int) method to determine if a particular
character should be used as a delimiter.| Constructor and Description |
|---|
ArgumentCompletor.AbstractArgumentDelimiter() |
| Modifier and Type | Method and Description |
|---|---|
ArgumentCompletor.ArgumentList |
delimit(java.lang.String buffer,
int cursor)
Break the specified buffer into individual tokens
that can be completed on their own.
|
char[] |
getEscapeChars() |
char[] |
getQuoteChars() |
boolean |
isDelimiter(java.lang.String buffer,
int pos)
Returns true if the specified character is a whitespace
parameter.
|
abstract boolean |
isDelimiterChar(java.lang.String buffer,
int pos)
Returns true if the character at the specified position
if a delimiter.
|
boolean |
isEscaped(java.lang.String buffer,
int pos) |
boolean |
isQuoted(java.lang.String buffer,
int pos) |
void |
setEscapeChars(char[] escapeChars) |
void |
setQuoteChars(char[] quoteChars) |
public ArgumentCompletor.AbstractArgumentDelimiter()
public void setQuoteChars(char[] quoteChars)
public char[] getQuoteChars()
public void setEscapeChars(char[] escapeChars)
public char[] getEscapeChars()
public ArgumentCompletor.ArgumentList delimit(java.lang.String buffer, int cursor)
ArgumentCompletor.ArgumentDelimiterdelimit in interface ArgumentCompletor.ArgumentDelimiterbuffer - the buffer to splitcursor - the current position of the
cursor in the bufferpublic boolean isDelimiter(java.lang.String buffer,
int pos)
getQuoteChars(), and is not escaped by ant of the
getEscapeChars(), and returns true from
isDelimiterChar(java.lang.String, int).isDelimiter in interface ArgumentCompletor.ArgumentDelimiterbuffer - the complete command bufferpos - the index of the character in the bufferpublic boolean isQuoted(java.lang.String buffer,
int pos)
public boolean isEscaped(java.lang.String buffer,
int pos)
public abstract boolean isDelimiterChar(java.lang.String buffer,
int pos)
getQuoteChars(), and is not escaped by ant of the
getEscapeChars(). To perform escaping manually,
override isDelimiter(java.lang.String, int) instead.