org.springframework.shell
Class CommandLine
java.lang.Object
org.springframework.shell.CommandLine
public class CommandLine
- extends Object
Encapsulates the list of argument passed to the shell.
Constructor Summary |
CommandLine(String[] args,
int historySize,
String[] shellCommandsToExecute)
Construct a new CommandLine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLine
public CommandLine(String[] args,
int historySize,
String[] shellCommandsToExecute)
- Construct a new CommandLine
- Parameters:
args
- an array of strings from main(String[] args)historySize
- the size of this history buffershellCommandsToExecute
- semi-colon delimited list of commands for the shell to execute
getArgs
public String[] getArgs()
- Return the command line arguments
- Returns:
- the command line arguments
getHistorySize
public int getHistorySize()
- Returns:
- the historySize
getShellCommandsToExecute
public String[] getShellCommandsToExecute()
- Returns:
- the shellCommandsToExecute