public static class DefaultParser.ArgumentList extends Object implements ParsedLine
Constructor and Description |
---|
ArgumentList(String line,
List<String> words,
int wordIndex,
int wordCursor,
int cursor) |
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
|
public int wordIndex()
ParsedLine
wordIndex
in interface ParsedLine
public String word()
ParsedLine
word
in interface ParsedLine
public int wordCursor()
ParsedLine
wordCursor
in interface ParsedLine
public List<String> words()
ParsedLine
words
in interface ParsedLine
public int cursor()
ParsedLine
cursor
in interface ParsedLine
public String line()
ParsedLine
line
in interface ParsedLine
Copyright © 2017. All rights reserved.