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

A Command for regression tests. More...

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

Public Member Functions

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

Private Attributes

final boolean allArguments
 Whether all remaining commands should be included as arguments. 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

A Command for regression tests.

Author
Andreas Kirschbaum

Definition at line 31 of file TestCommand.java.

Constructor & Destructor Documentation

◆ TestCommand()

com.realtime.crossfire.jxclient.commands.TestCommand.TestCommand ( @NotNull final String  commandName,
final boolean  allArguments,
@NotNull final CrossfireServerConnection  crossfireServerConnection 
)

Creates a new instance.

Parameters
commandNamethe name of the command
allArgumentswhether all remaining commands should be included as arguments
crossfireServerConnectionthe connection instance

Definition at line 45 of file TestCommand.java.

References com.realtime.crossfire.jxclient.commands.TestCommand.allArguments().

+ Here is the call graph for this function:

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.TestCommand.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 TestCommand.java.

Referenced by com.realtime.crossfire.jxclient.commands.TestCommand.TestCommand().

+ Here is the caller graph for this function:

◆ execute()

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

Executes the command with the given arguments.

Parameters
argsthe command arguments

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

Definition at line 62 of file TestCommand.java.

Member Data Documentation

◆ allArguments

final boolean com.realtime.crossfire.jxclient.commands.TestCommand.allArguments
private

Whether all remaining commands should be included as arguments.

Definition at line 36 of file TestCommand.java.


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