jline
Class ArgumentCompletor.ArgumentList
java.lang.Object
jline.ArgumentCompletor.ArgumentList
- Enclosing class:
- ArgumentCompletor
public static class ArgumentCompletor.ArgumentList
- extends Object
The result of a delimited buffer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
arguments
private String[] arguments
cursorArgumentIndex
private int cursorArgumentIndex
argumentPosition
private int argumentPosition
bufferPosition
private int bufferPosition
ArgumentCompletor.ArgumentList
public ArgumentCompletor.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
setCursorArgumentIndex
public void setCursorArgumentIndex(int cursorArgumentIndex)
getCursorArgumentIndex
public int getCursorArgumentIndex()
getCursorArgument
public String getCursorArgument()
setArgumentPosition
public void setArgumentPosition(int argumentPosition)
getArgumentPosition
public int getArgumentPosition()
setArguments
public void setArguments(String[] arguments)
getArguments
public String[] getArguments()
setBufferPosition
public void setBufferPosition(int bufferPosition)
getBufferPosition
public int getBufferPosition()