public final class CommandParser extends Object
|Modifier and Type||Method and Description|
Parses a string command received from a client into its component parts, and creates a
Commandobject representing it.
senderId- The backend-generated ID for the sender of the command
sender- The current username of the sender
commandString- The command string to parse
Commandcorresponding to the string
IllegalArgumentException- if the commandString is syntactically invalid, meaning that it is of an unrecognized type or its components do not match its type. You do not need to modify this file.