java.lang.Object
org.jline.shell.CommandLine
Represents a parsed command line with its components.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of description that should be displayed. -
Constructor Summary
ConstructorsConstructorDescriptionCommandLine(String line, String head, String tail, List<String> args, CommandLine.Type type) Creates a new command line. -
Method Summary
-
Constructor Details
-
CommandLine
Creates a new command line.- Parameters:
line- the original command linehead- the part before the cursortail- the part after the cursorargs- the parsed argumentstype- the description type
-
-
Method Details
-
line
Returns the original command line.- Returns:
- the line
-
head
Returns the part before the cursor.- Returns:
- the head
-
tail
Returns the part after the cursor.- Returns:
- the tail
-
args
Returns the parsed arguments.- Returns:
- the arguments
-
type
Returns the description type.- Returns:
- the type
-