ParsedLine
objects are returned by the Parser
during completion or when accepting the line.
The instances should implement the CompletingParsedLine
interface so that escape chars and quotes can be correctly handled.
Parser
, CompletingParsedLine
Modifier and Type | Method and Description |
---|---|
public int | |
public String | |
public String | |
public int | Returns: the cursor position within the current wordThe cursor position within the current word. |
public int | Returns: the index of the current word in the list of wordsThe index of the current word in the list of words. |
public List |
cursor | back to summary |
---|---|
public int cursor() The cursor position within the line.
|
line | back to summary |
---|---|
public String line() The unparsed line.
|
word | back to summary |
---|---|
public String word() The current word being completed. If the cursor is after the last word, an empty string is returned.
|
wordCursor | back to summary |
---|---|
public int wordCursor() The cursor position within the current word.
|
wordIndex | back to summary |
---|---|
public int wordIndex() The index of the current word in the list of words.
|
words | back to summary |
---|---|
public List The list of words. |