public class Commands
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Command> |
commands
Maps command name to
Command instance. |
Constructor and Description |
---|
Commands() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command command)
Adds an executable
Command . |
Command |
findCommand(java.lang.String commandName)
Returns a
Command by name. |