Package jline
Class ArgumentCompletor.ArgumentList
java.lang.Object
jline.ArgumentCompletor.ArgumentList
- Enclosing class:
ArgumentCompletor
The result of a delimited buffer.
- Author:
- Marc Prud'hommeaux
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentList
(String[] arguments, int cursorArgumentIndex, int argumentPosition, int bufferPosition) -
Method Summary
Modifier and TypeMethodDescriptionint
String[]
int
int
void
setArgumentPosition
(int argumentPosition) void
setArguments
(String[] arguments) void
setBufferPosition
(int bufferPosition) void
setCursorArgumentIndex
(int cursorArgumentIndex)
-
Constructor Details
-
ArgumentList
public ArgumentList(String[] arguments, int cursorArgumentIndex, int argumentPosition, int bufferPosition) - Parameters:
arguments
- the array of tokenscursorArgumentIndex
- the token index of the cursorargumentPosition
- the position of the cursor in the current tokenbufferPosition
- the position of the cursor in the whole buffer
-
-
Method Details
-
setCursorArgumentIndex
-
getCursorArgumentIndex
-
getCursorArgument
-
setArgumentPosition
-
getArgumentPosition
-
setArguments
-
getArguments
-
setBufferPosition
-
getBufferPosition
-