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

A Command instance and its arguments. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.commands.CommandExec:

Public Member Functions

 CommandExec (@Nullable final Command command, @NotNull final String args)
 Creates a new instance. More...
 
boolean equals (@Nullable final Object obj)
 
String getArgs ()
 Returns the command arguments. More...
 
Command getCommand ()
 Returns the command to execute or. More...
 
int hashCode ()
 
String toString ()
 

Private Attributes

final String args
 The command arguments. More...
 
final Command command
 The command to execute or. More...
 

Detailed Description

A Command instance and its arguments.

Author
Andreas Kirschbaum

Definition at line 31 of file CommandExec.java.

Constructor & Destructor Documentation

◆ CommandExec()

com.realtime.crossfire.jxclient.commands.CommandExec.CommandExec ( @Nullable final Command  command,
@NotNull final String  args 
)

Creates a new instance.

Parameters
commandthe command to execute or
null
to send as "ncom"
argsthe command arguments

Definition at line 50 of file CommandExec.java.

References com.realtime.crossfire.jxclient.commands.CommandExec.args, and com.realtime.crossfire.jxclient.commands.CommandExec.command.

Referenced by com.realtime.crossfire.jxclient.commands.CommandExec.equals().

+ Here is the caller graph for this function:

Member Function Documentation

◆ equals()

boolean com.realtime.crossfire.jxclient.commands.CommandExec.equals ( @Nullable final Object  obj)

◆ getArgs()

String com.realtime.crossfire.jxclient.commands.CommandExec.getArgs ( )

Returns the command arguments.

Returns
the command arguments

Definition at line 69 of file CommandExec.java.

References com.realtime.crossfire.jxclient.commands.CommandExec.args.

◆ getCommand()

Command com.realtime.crossfire.jxclient.commands.CommandExec.getCommand ( )

Returns the command to execute or.

null

to execute as "ncom".

Returns
the command or
null

Definition at line 60 of file CommandExec.java.

References com.realtime.crossfire.jxclient.commands.CommandExec.command.

◆ hashCode()

int com.realtime.crossfire.jxclient.commands.CommandExec.hashCode ( )

Definition at line 77 of file CommandExec.java.

◆ toString()

String com.realtime.crossfire.jxclient.commands.CommandExec.toString ( )

Member Data Documentation

◆ args

◆ command

final Command com.realtime.crossfire.jxclient.commands.CommandExec.command
private

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