|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjline.console.completer.ArgumentCompleter.AbstractArgumentDelimiter
public abstract static class ArgumentCompleter.AbstractArgumentDelimiter
Abstract implementation of a delimiter that uses the isDelimiter(java.lang.CharSequence, int) method to determine if a particular
character should be used as a delimiter.
| Constructor Summary | |
|---|---|
ArgumentCompleter.AbstractArgumentDelimiter()
|
|
| Method Summary | |
|---|---|
ArgumentCompleter.ArgumentList |
delimit(CharSequence buffer,
int cursor)
Break the specified buffer into individual tokens that can be completed on their own. |
char[] |
getEscapeChars()
|
char[] |
getQuoteChars()
|
boolean |
isDelimiter(CharSequence buffer,
int pos)
Returns true if the specified character is a whitespace parameter. |
abstract boolean |
isDelimiterChar(CharSequence buffer,
int pos)
Returns true if the character at the specified position if a delimiter. |
boolean |
isEscaped(CharSequence buffer,
int pos)
|
boolean |
isQuoted(CharSequence buffer,
int pos)
|
void |
setEscapeChars(char[] chars)
|
void |
setQuoteChars(char[] chars)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentCompleter.AbstractArgumentDelimiter()
| Method Detail |
|---|
public void setQuoteChars(char[] chars)
public char[] getQuoteChars()
public void setEscapeChars(char[] chars)
public char[] getEscapeChars()
public ArgumentCompleter.ArgumentList delimit(CharSequence buffer,
int cursor)
ArgumentCompleter.ArgumentDelimiter
delimit in interface ArgumentCompleter.ArgumentDelimiterbuffer - The buffer to splitcursor - The current position of the cursor in the buffer
public boolean isDelimiter(CharSequence buffer,
int pos)
getQuoteChars(), and is not escaped by ant of the getEscapeChars(), and
returns true from isDelimiterChar(java.lang.CharSequence, int).
isDelimiter in interface ArgumentCompleter.ArgumentDelimiterbuffer - The complete command bufferpos - The index of the character in the buffer
public boolean isQuoted(CharSequence buffer,
int pos)
public boolean isEscaped(CharSequence buffer,
int pos)
public abstract boolean isDelimiterChar(CharSequence buffer,
int pos)
getQuoteChars(), and is not escaped by ant of the
getEscapeChars(). To perform escaping manually, override isDelimiter(java.lang.CharSequence, int) instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||