Package org.apache.karaf.shell.compat
Class OldArgumentCompleter.ArgumentList
- java.lang.Object
-
- org.apache.karaf.shell.compat.OldArgumentCompleter.ArgumentList
-
- Enclosing class:
- OldArgumentCompleter
public static class OldArgumentCompleter.ArgumentList extends Object
The result of a delimited buffer.
-
-
Constructor Summary
Constructors Constructor Description ArgumentList(String[] arguments, int cursorArgumentIndex, int argumentPosition, int bufferPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetArgumentPosition()String[]getArguments()intgetBufferPosition()StringgetCursorArgument()intgetCursorArgumentIndex()voidsetArgumentPosition(int argumentPosition)voidsetArguments(String[] arguments)voidsetBufferPosition(int bufferPosition)voidsetCursorArgumentIndex(int cursorArgumentIndex)
-
-
-
Constructor Detail
-
ArgumentList
public 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 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()
-
-