Crossfire JXClient, Trunk
|
Public Member Functions | |
void | addCommand (@NotNull final Command command) |
Command | findCommand (@NotNull final String commandName) |
Collection< String > | getCommands () |
Private Attributes | |
final Map< String, Command > | commands = new TreeMap<>() |
Parses and executes client-side commands.
Definition at line 37 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 49 of file Commands.java.
References com.realtime.crossfire.jxclient.commands.Commands.commands.
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 70 of file Commands.java.
References com.realtime.crossfire.jxclient.commands.Commands.commands.
Referenced by com.realtime.crossfire.jxclient.commands.HelpCommand.execute().
Collection<String> com.realtime.crossfire.jxclient.commands.Commands.getCommands | ( | ) |
Returns all defined commands.
Definition at line 60 of file Commands.java.
References com.realtime.crossfire.jxclient.commands.Commands.commands.
Referenced by com.realtime.crossfire.jxclient.commands.HelpCommand.execute().
|
private |
Maps command name to Command instance.
Definition at line 43 of file Commands.java.
Referenced by com.realtime.crossfire.jxclient.commands.Commands.addCommand(), com.realtime.crossfire.jxclient.commands.Commands.findCommand(), and com.realtime.crossfire.jxclient.commands.Commands.getCommands().