Package jline
Interface ArgumentCompletor.ArgumentDelimiter
-
- All Known Implementing Classes:
ArgumentCompletor.AbstractArgumentDelimiter
,ArgumentCompletor.WhitespaceArgumentDelimiter
- Enclosing class:
- ArgumentCompletor
public static interface ArgumentCompletor.ArgumentDelimiter
TheArgumentCompletor.ArgumentDelimiter
allows custom breaking up of aString
into individual arguments in order to dispatch the arguments to the nestedCompletor
.- Author:
- Marc Prud'hommeaux
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgumentCompletor.ArgumentList
delimit(java.lang.String buffer, int argumentPosition)
Break the specified buffer into individual tokens that can be completed on their own.boolean
isDelimiter(java.lang.String buffer, int pos)
Returns true if the specified character is a whitespace parameter.
-
-
-
Method Detail
-
delimit
ArgumentCompletor.ArgumentList delimit(java.lang.String buffer, int argumentPosition)
Break the specified buffer into individual tokens that can be completed on their own.- Parameters:
buffer
- the buffer to splitargumentPosition
- the current position of the cursor in the buffer- Returns:
- the tokens
-
isDelimiter
boolean isDelimiter(java.lang.String 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
-
-