jline.console.completer
Class ArgumentCompleter.ArgumentList
java.lang.Object
jline.console.completer.ArgumentCompleter.ArgumentList
- Enclosing class:
- ArgumentCompleter
public static class ArgumentCompleter.ArgumentList
- extends Object
The result of a delimited buffer.
- Author:
- Marc Prud'hommeaux
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArgumentCompleter.ArgumentList
public ArgumentCompleter.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 i)
getCursorArgumentIndex
public int getCursorArgumentIndex()
getCursorArgument
public String getCursorArgument()
setArgumentPosition
public void setArgumentPosition(int pos)
getArgumentPosition
public int getArgumentPosition()
setArguments
public void setArguments(String[] arguments)
getArguments
public String[] getArguments()
setBufferPosition
public void setBufferPosition(int pos)
getBufferPosition
public int getBufferPosition()
Copyright © 2008-2011 Sonatype. All Rights Reserved.