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 TypeMethodDescriptionintString[]intintvoidsetArgumentPosition(int argumentPosition) voidsetArguments(String[] arguments) voidsetBufferPosition(int bufferPosition) voidsetCursorArgumentIndex(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
-