jline
Class ArgumentCompletor.AbstractArgumentDelimiter
java.lang.Object
jline.ArgumentCompletor.AbstractArgumentDelimiter
- ArgumentCompletor
- ArgumentCompletor.ArgumentDelimiter
public static abstract class ArgumentCompletor.AbstractArgumentDelimiter
extends java.lang.Object
Abstract implementation of a delimiter that uses the
isDelimiter(String,int)
method to determine if a particular
character should be used as a delimiter.
escapeChars
private char[] escapeChars
quoteChars
private char[] quoteChars
getEscapeChars
public char[] getEscapeChars()
getQuoteChars
public char[] getQuoteChars()
isDelimiter
public boolean isDelimiter(String buffer,
int pos)
- isDelimiter in interface ArgumentCompletor.ArgumentDelimiter
buffer
- the complete command bufferpos
- the index of the character in the buffer
- true if the character should be a delimiter
isDelimiterChar
public abstract boolean isDelimiterChar(String buffer,
int pos)
Returns true if the character at the specified position
if a delimiter. This method will only be called if the
character is not enclosed in any of the
getQuoteChars()
, and is not escaped by ant of the
getEscapeChars()
. To perform escaping manually,
override
isDelimiter(String,int)
instead.
isEscaped
public boolean isEscaped(String buffer,
int pos)
isQuoted
public boolean isQuoted(String buffer,
int pos)
setEscapeChars
public void setEscapeChars(char[] escapeChars)
setQuoteChars
public void setQuoteChars(char[] quoteChars)