jline.console.completer
Class ArgumentCompleter.ArgumentList

java.lang.Object
  extended by 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

Constructor Summary
ArgumentCompleter.ArgumentList(String[] arguments, int cursorArgumentIndex, int argumentPosition, int bufferPosition)
           
 
Method Summary
 int getArgumentPosition()
           
 String[] getArguments()
           
 int getBufferPosition()
           
 String getCursorArgument()
           
 int getCursorArgumentIndex()
           
 void setArgumentPosition(int pos)
           
 void setArguments(String[] arguments)
           
 void setBufferPosition(int pos)
           
 void setCursorArgumentIndex(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentCompleter.ArgumentList

public ArgumentCompleter.ArgumentList(String[] arguments,
                                      int cursorArgumentIndex,
                                      int argumentPosition,
                                      int bufferPosition)
Parameters:
arguments - The array of tokens
cursorArgumentIndex - The token index of the cursor
argumentPosition - The position of the cursor in the current token
bufferPosition - The position of the cursor in the whole buffer
Method Detail

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.