jline

Class ArgumentCompletor.WhitespaceArgumentDelimiter

Enclosing Class:
ArgumentCompletor
Implemented Interfaces:
ArgumentCompletor.ArgumentDelimiter

public static class ArgumentCompletor.WhitespaceArgumentDelimiter
extends ArgumentCompletor.AbstractArgumentDelimiter

ArgumentCompletor.ArgumentDelimiter implementation that counts all whitespace (as reported by Character.isWhitespace) as being a delimiter.
Author:
Marc Prud'hommeaux

Field Summary

Fields inherited from class jline.ArgumentCompletor.AbstractArgumentDelimiter

escapeChars, quoteChars

Method Summary

boolean
isDelimiterChar(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, isDelimiterChar, isEscaped, isQuoted, setEscapeChars, setQuoteChars

Method Details

isDelimiterChar

public boolean isDelimiterChar(String buffer,
                               int pos)
The character is a delimiter if it is whitespace, and the preceeding character is not an escape character.
Overrides:
isDelimiterChar in interface ArgumentCompletor.AbstractArgumentDelimiter