Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.commands.TestCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.commands.TestCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.commands.TestCommand:
Collaboration graph

Public Member Functions

boolean allArguments ()
 
void execute (@NotNull final String args)
 
String getHelp ()
 
 TestCommand (@NotNull final String commandName, final boolean allArguments, @NotNull final CrossfireServerConnection crossfireServerConnection)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
String getCommandName ()
 
String toString ()
 

Private Attributes

final boolean allArguments
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
 AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection)
 
void drawInfo (@NotNull final String message)
 
void drawInfo (@NotNull final String message, final int color)
 
void drawInfoError (@NotNull final String message)
 

Detailed Description

A Command for regression tests.

Author
Andreas Kirschbaum

Definition at line 32 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 46 of file TestCommand.java.

References com.realtime.crossfire.jxclient.commands.TestCommand.allArguments, com.realtime.crossfire.jxclient.commands.AbstractCommand.commandName, and com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection.

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 52 of file TestCommand.java.

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

◆ 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 57 of file TestCommand.java.

◆ getHelp()

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

Returns the help text for this command.

Returns
the help text

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

Definition at line 63 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 37 of file TestCommand.java.

Referenced by com.realtime.crossfire.jxclient.commands.TestCommand.allArguments(), and com.realtime.crossfire.jxclient.commands.TestCommand.TestCommand().


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