Package jline.console.completer
Interface ArgumentCompleter.ArgumentDelimiter
-
- All Known Implementing Classes:
ArgumentCompleter.AbstractArgumentDelimiter,ArgumentCompleter.WhitespaceArgumentDelimiter
- Enclosing class:
- ArgumentCompleter
public static interface ArgumentCompleter.ArgumentDelimiterTheArgumentCompleter.ArgumentDelimiterallows custom breaking up of aStringinto individual arguments in order to dispatch the arguments to the nestedCompleter.- Author:
- Marc Prud'hommeaux
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgumentCompleter.ArgumentListdelimit(java.lang.CharSequence buffer, int pos)Break the specified buffer into individual tokens that can be completed on their own.booleanisDelimiter(java.lang.CharSequence buffer, int pos)Returns true if the specified character is a whitespace parameter.
-
-
-
Method Detail
-
delimit
ArgumentCompleter.ArgumentList delimit(java.lang.CharSequence buffer, int pos)
Break the specified buffer into individual tokens that can be completed on their own.- Parameters:
buffer- The buffer to splitpos- The current position of the cursor in the buffer- Returns:
- The tokens
-
isDelimiter
boolean isDelimiter(java.lang.CharSequence buffer, int pos)Returns true if the specified character is a whitespace parameter.- Parameters:
buffer- The complete command bufferpos- The index of the character in the buffer- Returns:
- True if the character should be a delimiter
-
-