Package jline
Class ArgumentCompletor.WhitespaceArgumentDelimiter
- java.lang.Object
-
- jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- jline.ArgumentCompletor.WhitespaceArgumentDelimiter
-
- All Implemented Interfaces:
ArgumentCompletor.ArgumentDelimiter
- Enclosing class:
- ArgumentCompletor
public static class ArgumentCompletor.WhitespaceArgumentDelimiter extends ArgumentCompletor.AbstractArgumentDelimiter
ArgumentCompletor.ArgumentDelimiter
implementation that counts all whitespace (as reported byCharacter.isWhitespace(char)
) as being a delimiter.- Author:
- Marc Prud'hommeaux
-
-
Constructor Summary
Constructors Constructor Description WhitespaceArgumentDelimiter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDelimiterChar(java.lang.String buffer, int pos)
The character is a delimiter if it is whitespace, and the preceeding character is not an escape character.-
Methods inherited from class jline.ArgumentCompletor.AbstractArgumentDelimiter
delimit, getEscapeChars, getQuoteChars, isDelimiter, isEscaped, isQuoted, setEscapeChars, setQuoteChars
-
-
-
-
Method Detail
-
isDelimiterChar
public boolean isDelimiterChar(java.lang.String buffer, int pos)
The character is a delimiter if it is whitespace, and the preceeding character is not an escape character.- Specified by:
isDelimiterChar
in classArgumentCompletor.AbstractArgumentDelimiter
-
-