Interface ParsedLine

All Known Subinterfaces:
CompletingParsedLine
All Known Implementing Classes:
ArgumentCompleter.ArgumentLine, DefaultParser.ArgumentList

public interface ParsedLine
ParsedLine objects are returned by the Parser during completion or when accepting the line.

This interface represents a command line that has been tokenized into words according to the syntax rules of the parser. It provides access to the individual words, the current word being completed, cursor positions, and the original unparsed line.

ParsedLine objects are used extensively during tab completion to determine what the user is trying to complete and to provide the appropriate context to Completer implementations.

The instances should implement the CompletingParsedLine interface so that escape chars and quotes can be correctly handled during completion.

See Also: