Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.commands.ExecCommand Class Reference

Implements the "exec" command. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.commands.ExecCommand:
+ Collaboration diagram for com.realtime.crossfire.jxclient.commands.ExecCommand:

Public Member Functions

boolean allArguments ()
 Returns whether all remaining commands should be included as arguments. More...
 
 ExecCommand (@NotNull final CommandCallback commandCallback, @NotNull final CrossfireServerConnection crossfireServerConnection)
 Creates a new instance. More...
 
void execute (@NotNull final String args)
 Executes the command with the given arguments. More...
 
String getHelp ()
 Returns the help text for this command. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
String getCommandName ()
 Returns the name of the command. More...
 
String toString ()
 

Private Attributes

final CommandCallback commandCallback
 The CommandCallback to lookup commands. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
 AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection)
 Creates a new instance. More...
 
void drawInfo (@NotNull final String message)
 Displays a regular output message. More...
 
void drawInfo (@NotNull final String message, final int color)
 Displays a message. More...
 
void drawInfoError (@NotNull final String message)
 Displays an error message. More...
 

Detailed Description

Implements the "exec" command.

It runs a skin command.

Author
Andreas Kirschbaum

Definition at line 35 of file ExecCommand.java.

Constructor & Destructor Documentation

◆ ExecCommand()

com.realtime.crossfire.jxclient.commands.ExecCommand.ExecCommand ( @NotNull final CommandCallback  commandCallback,
@NotNull final CrossfireServerConnection  crossfireServerConnection 
)

Creates a new instance.

Parameters
commandCallbackthe command callback to lookup commands
crossfireServerConnectionthe connection instance

Definition at line 48 of file ExecCommand.java.

References com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback, and com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection.

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.ExecCommand.allArguments ( )

Returns whether all remaining commands should be included as arguments.

Returns
whether all remaining commands should be included as arguments

Implements com.realtime.crossfire.jxclient.commands.Command.

Definition at line 54 of file ExecCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.commands.ExecCommand.execute ( @NotNull final String  args)

◆ getHelp()

String com.realtime.crossfire.jxclient.commands.ExecCommand.getHelp ( )

Returns the help text for this command.

Returns
the help text

Implements com.realtime.crossfire.jxclient.commands.Command.

Definition at line 77 of file ExecCommand.java.

References com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback, and com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandListNames().

+ Here is the call graph for this function:

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback
private

The documentation for this class was generated from the following file: