public interface ParsedLine
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 |
---|---|
int |
cursor()
The cursor position within the line.
|
String |
line()
The unparsed line.
|
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.
|
String word()
int wordCursor()
int wordIndex()
String line()
int cursor()