Package jline.console.completer
Class ArgumentCompleter.WhitespaceArgumentDelimiter
- java.lang.Object
-
- jline.console.completer.ArgumentCompleter.AbstractArgumentDelimiter
-
- jline.console.completer.ArgumentCompleter.WhitespaceArgumentDelimiter
-
- All Implemented Interfaces:
ArgumentCompleter.ArgumentDelimiter
- Enclosing class:
- ArgumentCompleter
public static class ArgumentCompleter.WhitespaceArgumentDelimiter extends ArgumentCompleter.AbstractArgumentDelimiter
ArgumentCompleter.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.CharSequence buffer, int pos)
The character is a delimiter if it is whitespace, and the preceding character is not an escape character.-
Methods inherited from class jline.console.completer.ArgumentCompleter.AbstractArgumentDelimiter
delimit, getEscapeChars, getQuoteChars, isDelimiter, isEscapeChar, isEscaped, isQuoteChar, isQuoted, setEscapeChars, setQuoteChars
-
-
-
-
Method Detail
-
isDelimiterChar
public boolean isDelimiterChar(java.lang.CharSequence buffer, int pos)
The character is a delimiter if it is whitespace, and the preceding character is not an escape character.- Specified by:
isDelimiterChar
in classArgumentCompleter.AbstractArgumentDelimiter
-
-