public static class ArgumentCompletor.ArgumentList extends Object
Constructor and Description |
---|
ArgumentList(String[] arguments,
int cursorArgumentIndex,
int argumentPosition,
int bufferPosition) |
Modifier and Type | Method and Description |
---|---|
int |
getArgumentPosition() |
String[] |
getArguments() |
int |
getBufferPosition() |
String |
getCursorArgument() |
int |
getCursorArgumentIndex() |
void |
setArgumentPosition(int argumentPosition) |
void |
setArguments(String[] arguments) |
void |
setBufferPosition(int bufferPosition) |
void |
setCursorArgumentIndex(int cursorArgumentIndex) |
public ArgumentList(String[] arguments, int cursorArgumentIndex, int argumentPosition, int bufferPosition)
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 bufferpublic void setCursorArgumentIndex(int cursorArgumentIndex)
public int getCursorArgumentIndex()
public String getCursorArgument()
public void setArgumentPosition(int argumentPosition)
public int getArgumentPosition()
public void setArguments(String[] arguments)
public String[] getArguments()
public void setBufferPosition(int bufferPosition)
public int getBufferPosition()
Copyright © 2024. All rights reserved.