Crossfire JXClient, Trunk
R20561
|
Parses and executes client-side commands. More...
Public Member Functions | |
void | addCommand (@NotNull final Command command) |
Adds an executable Command. More... | |
Command | findCommand (@NotNull final String commandName) |
Returns a Command by name. More... | |
Private Attributes | |
final Map< String, Command > | commands = new HashMap<>() |
Maps command name to Command instance. More... | |
Parses and executes client-side commands.
Definition at line 33 of file Commands.java.
void com.realtime.crossfire.jxclient.commands.Commands.addCommand | ( | @NotNull final Command | command | ) |
Adds an executable Command.
command | the command to add |
Definition at line 45 of file Commands.java.
Referenced by com.realtime.crossfire.jxclient.main.JXClient.JXClient(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandAllArguments(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandArguments(), com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandCaseInsensitiveCommandNames(), and com.realtime.crossfire.jxclient.commands.CommandExpanderTest.testExpandPredefined().
Command com.realtime.crossfire.jxclient.commands.Commands.findCommand | ( | @NotNull final String | commandName | ) |
Returns a Command by name.
commandName | the command name to search |
Definition at line 57 of file Commands.java.
|
private |
Maps command name to Command instance.
Definition at line 39 of file Commands.java.