Class CommandSplitter
java.lang.Object
za.co.wethinkcode.robots.client.commands.CommandSplitter
Utility for splitting a command
-
Constructor Summary
ConstructorsConstructorDescriptionCommandSplitter(String userInput) Standard Constructor for a commandSplitter.CommandSplitter(String[] args) -
Method Summary
Modifier and TypeMethodDescriptionString[]Getter for the split commandsGetter for the commandNameGetter for a robot name (typically for launch
-
Constructor Details
-
CommandSplitter
-
CommandSplitter
Standard Constructor for a commandSplitter. smartly splits for a target.- Parameters:
userInput- the user's input- Throws:
ParsingFailedException
-
-
Method Details
-
getCommandName
Getter for the commandName- Returns:
- the name of the command
-
getRobotName
Getter for a robot name (typically for launch- Returns:
-
getCommandArgs
Getter for the split commands- Returns:
- the args as a string
-