Top Description Methods
jdk.internal.org.jline.reader

public Interface ParsedLine

Known Direct Subinterfaces
jdk.internal.org.jline.reader.CompletingParsedLine
Known Direct Implementers
jdk.internal.org.jline.reader.impl.DefaultParser.ArgumentList, jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter.ArgumentLine
Imports
java.util.List

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.
See Also
Parser, CompletingParsedLine

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the cursor position within the line
cursor
()

The cursor position within the line.

public String

Returns:

the unparsed line
line
()

The unparsed line.

public String

Returns:

the word being completed or an empty string
word
()

The current word being completed.

public int

Returns:

the cursor position within the current word
wordCursor
()

The cursor position within the current word.

public int

Returns:

the index of the current word in the list of words
wordIndex
()

The index of the current word in the list of words.

public List<String>

Returns:

the list of words
words
()

The list of words.

Method Detail

cursorback to summary
public int cursor()

The cursor position within the line.

Returns:int

the cursor position within the line

lineback to summary
public String line()

The unparsed line.

Returns:String

the unparsed line

wordback to summary
public String word()

The current word being completed. If the cursor is after the last word, an empty string is returned.

Returns:String

the word being completed or an empty string

wordCursorback to summary
public int wordCursor()

The cursor position within the current word.

Returns:int

the cursor position within the current word

wordIndexback to summary
public int wordIndex()

The index of the current word in the list of words.

Returns:int

the index of the current word in the list of words

wordsback to summary
public List<String> words()

The list of words.

Returns:List<String>

the list of words