public class DefaultParser.ArgumentList extends Object implements ParsedLine, CompletingParsedLine
| Constructor and Description |
|---|
ArgumentList(String line,
List<String> words,
int wordIndex,
int wordCursor,
int cursor)
Deprecated.
|
ArgumentList(String line,
List<String> words,
int wordIndex,
int wordCursor,
int cursor,
String openingQuote,
int rawWordCursor,
int rawWordLength) |
| Modifier and Type | Method and Description |
|---|---|
int |
cursor()
The cursor position within the line.
|
CharSequence |
escape(CharSequence candidate,
boolean complete) |
String |
line()
The unparsed line.
|
int |
rawWordCursor() |
int |
rawWordLength() |
String |
word()
The current word being completed.
|
int |
wordCursor()
The cursor position within the current word.
|
int |
wordIndex()
The index of the current word in the list of words.
|
List<String> |
words()
The list of words.
|
@Deprecated public ArgumentList(String line, List<String> words, int wordIndex, int wordCursor, int cursor)
public ArgumentList(String line, List<String> words, int wordIndex, int wordCursor, int cursor, String openingQuote, int rawWordCursor, int rawWordLength)
line - the command line being editedwords - the list of wordswordIndex - the index of the current word in the list of wordswordCursor - the cursor position within the current wordcursor - the cursor position within the lineopeningQuote - the opening quote (usually '\"' or '\'') or nullrawWordCursor - the cursor position inside the raw word (i.e. including quotes and escape characters)rawWordLength - the raw word length, including quotes and escape characterspublic int wordIndex()
ParsedLinewordIndex in interface ParsedLinepublic String word()
ParsedLineword in interface ParsedLinepublic int wordCursor()
ParsedLinewordCursor in interface ParsedLinepublic List<String> words()
ParsedLinewords in interface ParsedLinepublic int cursor()
ParsedLinecursor in interface ParsedLinepublic String line()
ParsedLineline in interface ParsedLinepublic CharSequence escape(CharSequence candidate, boolean complete)
escape in interface CompletingParsedLinepublic int rawWordCursor()
rawWordCursor in interface CompletingParsedLinepublic int rawWordLength()
rawWordLength in interface CompletingParsedLineCopyright © 2018. All rights reserved.