Class ParsedCommand
java.lang.Object
com.ibm.jvm.dtfjview.tools.ParsedCommand
This class divides the command line into the command with arguments.
If pipeline is found in the command line, it will re-organize it so that
the command before the pipe line will be placed after the command behind the
pipe line.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionString[]To get the arguments.To get the command line combined from its command and arguments, using spaces to separate tokens.To get the command without arguments.static ParsedCommandThis is a convenient method to parse a command line.voidsetArguments(String[] arguments) To set the arguments.voidsetCommand(String command) To set the command. 
- 
Constructor Details
- 
ParsedCommand
 
 - 
 - 
Method Details
- 
parse
This is a convenient method to parse a command line.- Parameters:
 commandLine- The command line. Can contain pipe lines.- Returns:
 - An initialized ParsedCommand object.
 
 - 
getCommand
To get the command without arguments.- Returns:
 - the command without arguments.
 
 - 
setCommand
To set the command.- Parameters:
 command- The command to be set.
 - 
getArguments
 - 
setArguments
To set the arguments.- Parameters:
 arguments- The arguments to be set.
 - 
getCombinedCommandLine
To get the command line combined from its command and arguments, using spaces to separate tokens.- Returns:
 - the combined command line.
 
 
 -