Przeglądaj źródła

Commands style fixes

Change-Id: I4124ed9a760e174b7e3ce65b7a0dc7f00366b479
Reviewed-on: http://gerrit.dmdirc.com/1993
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.6.6b1
Chris Smith 13 lat temu
rodzic
commit
c90b7be0aa
47 zmienionych plików z 39 dodań i 276 usunięć
  1. 2
    3
      src/com/dmdirc/commandparser/CommandManager.java
  2. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Ban.java
  3. 1
    6
      src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java
  4. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  5. 1
    6
      src/com/dmdirc/commandparser/commands/channel/Invite.java
  6. 1
    6
      src/com/dmdirc/commandparser/commands/channel/KickReason.java
  7. 1
    1
      src/com/dmdirc/commandparser/commands/channel/Mode.java
  8. 0
    1
      src/com/dmdirc/commandparser/commands/channel/Names.java
  9. 1
    7
      src/com/dmdirc/commandparser/commands/channel/Part.java
  10. 1
    7
      src/com/dmdirc/commandparser/commands/channel/SetNickColour.java
  11. 1
    7
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java
  12. 1
    6
      src/com/dmdirc/commandparser/commands/chat/Me.java
  13. 1
    8
      src/com/dmdirc/commandparser/commands/global/AliasCommand.java
  14. 1
    7
      src/com/dmdirc/commandparser/commands/global/AllServers.java
  15. 1
    9
      src/com/dmdirc/commandparser/commands/global/Clear.java
  16. 1
    1
      src/com/dmdirc/commandparser/commands/global/Echo.java
  17. 1
    9
      src/com/dmdirc/commandparser/commands/global/Exit.java
  18. 1
    1
      src/com/dmdirc/commandparser/commands/global/Help.java
  19. 1
    1
      src/com/dmdirc/commandparser/commands/global/Ifplugin.java
  20. 1
    2
      src/com/dmdirc/commandparser/commands/global/LoadPlugin.java
  21. 1
    1
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  22. 1
    10
      src/com/dmdirc/commandparser/commands/global/Notify.java
  23. 0
    9
      src/com/dmdirc/commandparser/commands/global/OpenWindow.java
  24. 0
    10
      src/com/dmdirc/commandparser/commands/global/ReloadActions.java
  25. 0
    9
      src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java
  26. 1
    10
      src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java
  27. 0
    10
      src/com/dmdirc/commandparser/commands/global/SaveConfig.java
  28. 1
    3
      src/com/dmdirc/commandparser/commands/global/Set.java
  29. 1
    10
      src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java
  30. 0
    26
      src/com/dmdirc/commandparser/commands/query/package-info.java
  31. 1
    7
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  32. 1
    2
      src/com/dmdirc/commandparser/commands/server/Away.java
  33. 1
    9
      src/com/dmdirc/commandparser/commands/server/Back.java
  34. 1
    8
      src/com/dmdirc/commandparser/commands/server/ChangeServer.java
  35. 1
    2
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  36. 1
    2
      src/com/dmdirc/commandparser/commands/server/Disconnect.java
  37. 1
    1
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  38. 0
    1
      src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java
  39. 1
    2
      src/com/dmdirc/commandparser/commands/server/Message.java
  40. 1
    2
      src/com/dmdirc/commandparser/commands/server/Nick.java
  41. 1
    2
      src/com/dmdirc/commandparser/commands/server/Notice.java
  42. 1
    2
      src/com/dmdirc/commandparser/commands/server/OpenQuery.java
  43. 1
    10
      src/com/dmdirc/commandparser/commands/server/Raw.java
  44. 1
    4
      src/com/dmdirc/commandparser/commands/server/RawServerCommand.java
  45. 1
    9
      src/com/dmdirc/commandparser/commands/server/Reconnect.java
  46. 0
    6
      src/com/dmdirc/commandparser/commands/server/ServerSettings.java
  47. 0
    9
      src/com/dmdirc/commandparser/commands/server/Umode.java

+ 2
- 3
src/com/dmdirc/commandparser/CommandManager.java Wyświetl plik

29
 import com.dmdirc.commandparser.commands.channel.*; //NOPMD
29
 import com.dmdirc.commandparser.commands.channel.*; //NOPMD
30
 import com.dmdirc.commandparser.commands.chat.*; //NOPMD
30
 import com.dmdirc.commandparser.commands.chat.*; //NOPMD
31
 import com.dmdirc.commandparser.commands.global.*; //NOPMD
31
 import com.dmdirc.commandparser.commands.global.*; //NOPMD
32
-//import com.dmdirc.commandparser.commands.query.*; //NOPMD
33
 import com.dmdirc.commandparser.commands.server.*; //NOPMD
32
 import com.dmdirc.commandparser.commands.server.*; //NOPMD
34
 import com.dmdirc.commandparser.parsers.CommandParser;
33
 import com.dmdirc.commandparser.parsers.CommandParser;
35
 import com.dmdirc.config.IdentityManager;
34
 import com.dmdirc.config.IdentityManager;
49
  */
48
  */
50
 public final class CommandManager {
49
 public final class CommandManager {
51
 
50
 
52
-    /** A list of commands that have been instansiated. */
51
+    /** A list of commands that have been instantiated. */
53
     private static final Map<CommandInfo, Command> COMMANDS
52
     private static final Map<CommandInfo, Command> COMMANDS
54
             = new HashMap<CommandInfo, Command>();
53
             = new HashMap<CommandInfo, Command>();
55
 
54
 
56
-    /** A list of command parsers that have been instansiated. */
55
+    /** A list of command parsers that have been instantiated. */
57
     private static final MapList<CommandType, CommandParser> PARSERS
56
     private static final MapList<CommandType, CommandParser> PARSERS
58
             = new MapList<CommandType, CommandParser>();
57
             = new MapList<CommandType, CommandParser>();
59
 
58
 

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Ban.java Wyświetl plik

38
 /**
38
 /**
39
  * The kick command bans a specified user or host from the channel.
39
  * The kick command bans a specified user or host from the channel.
40
  */
40
  */
41
-public final class Ban extends Command implements IntelligentCommand, CommandInfo {
42
-
43
-    /** Creates a new instance of Ban. */
44
-    public Ban() {
45
-        super();
46
-    }
41
+public class Ban extends Command implements IntelligentCommand, CommandInfo {
47
 
42
 
48
     /** {@inheritDoc} */
43
     /** {@inheritDoc} */
49
     @Override
44
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java Wyświetl plik

37
  * Opens the channel settings window for the channel.
37
  * Opens the channel settings window for the channel.
38
  */
38
  */
39
 @CommandOptions(allowOffline = false)
39
 @CommandOptions(allowOffline = false)
40
-public final class ChannelSettings extends Command implements
40
+public class ChannelSettings extends Command implements
41
         IntelligentCommand, CommandInfo {
41
         IntelligentCommand, CommandInfo {
42
 
42
 
43
-    /** Creates a new instance of ChannelSettings. */
44
-    public ChannelSettings() {
45
-        super();
46
-    }
47
-
48
     /** {@inheritDoc} */
43
     /** {@inheritDoc} */
49
     @Override
44
     @Override
50
     public void execute(final FrameContainer origin,
45
     public void execute(final FrameContainer origin,

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Cycle.java Wyświetl plik

36
  * The cycle command allows users to rapidly part and rejoin a channel.
36
  * The cycle command allows users to rapidly part and rejoin a channel.
37
  */
37
  */
38
 @CommandOptions(allowOffline = false)
38
 @CommandOptions(allowOffline = false)
39
-public final class Cycle extends Command implements CommandInfo {
40
-
41
-    /** Creates a new instance of Cycle. */
42
-    public Cycle() {
43
-        super();
44
-    }
39
+public class Cycle extends Command implements CommandInfo {
45
 
40
 
46
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
47
     @Override
42
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/Invite.java Wyświetl plik

41
  * @since 0.6.4
41
  * @since 0.6.4
42
  */
42
  */
43
 @CommandOptions(allowOffline = false)
43
 @CommandOptions(allowOffline = false)
44
-public final class Invite extends Command implements ExternalCommand, CommandInfo {
45
-
46
-    /** Creates a new instance of Invite. */
47
-    public Invite() {
48
-        super();
49
-    }
44
+public class Invite extends Command implements ExternalCommand, CommandInfo {
50
 
45
 
51
     /** {@inheritDoc} */
46
     /** {@inheritDoc} */
52
     @Override
47
     @Override

+ 1
- 6
src/com/dmdirc/commandparser/commands/channel/KickReason.java Wyświetl plik

41
  * This version allows the user to specify a reason.
41
  * This version allows the user to specify a reason.
42
  */
42
  */
43
 @CommandOptions(allowOffline = false)
43
 @CommandOptions(allowOffline = false)
44
-public final class KickReason extends Command implements IntelligentCommand,
44
+public class KickReason extends Command implements IntelligentCommand,
45
         CommandInfo {
45
         CommandInfo {
46
 
46
 
47
-    /** Creates a new instance of KickReason. */
48
-    public KickReason() {
49
-        super();
50
-    }
51
-
52
     /** {@inheritDoc} */
47
     /** {@inheritDoc} */
53
     @Override
48
     @Override
54
     public void execute(final FrameContainer origin,
49
     public void execute(final FrameContainer origin,

+ 1
- 1
src/com/dmdirc/commandparser/commands/channel/Mode.java Wyświetl plik

42
  * The mode command allows the user to inspect and change channel modes.
42
  * The mode command allows the user to inspect and change channel modes.
43
  */
43
  */
44
 @CommandOptions(allowOffline = false)
44
 @CommandOptions(allowOffline = false)
45
-public final class Mode extends Command implements IntelligentCommand,
45
+public class Mode extends Command implements IntelligentCommand,
46
         ExternalCommand, CommandInfo {
46
         ExternalCommand, CommandInfo {
47
 
47
 
48
     /** {@inheritDoc} */
48
     /** {@inheritDoc} */

+ 0
- 1
src/com/dmdirc/commandparser/commands/channel/Names.java Wyświetl plik

52
                 + channel.getChannelInfo().getName());
52
                 + channel.getChannelInfo().getName());
53
     }
53
     }
54
 
54
 
55
-
56
     /** {@inheritDoc} */
55
     /** {@inheritDoc} */
57
     @Override
56
     @Override
58
     public void execute(final FrameContainer origin, final Server server,
57
     public void execute(final FrameContainer origin, final Server server,

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/Part.java Wyświetl plik

34
 
34
 
35
 /**
35
 /**
36
  * The part command parts the current channel with a specified part message.
36
  * The part command parts the current channel with a specified part message.
37
- * @author chris
38
  */
37
  */
39
 @CommandOptions(allowOffline=false)
38
 @CommandOptions(allowOffline=false)
40
-public final class Part extends Command implements CommandInfo {
41
-
42
-    /** Creates a new instance of Part. */
43
-    public Part() {
44
-        super();
45
-    }
39
+public class Part extends Command implements CommandInfo {
46
 
40
 
47
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
48
     @Override
42
     @Override

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/SetNickColour.java Wyświetl plik

41
 
41
 
42
 /**
42
 /**
43
  * Allows the user to set a nickname on the channel to use a custom colour.
43
  * Allows the user to set a nickname on the channel to use a custom colour.
44
- * @author chris
45
  */
44
  */
46
-public final class SetNickColour extends Command implements IntelligentCommand,
45
+public class SetNickColour extends Command implements IntelligentCommand,
47
         CommandInfo {
46
         CommandInfo {
48
 
47
 
49
-    /** Creates a new instance of SetNickColour. */
50
-    public SetNickColour() {
51
-        super();
52
-    }
53
-
54
     /** {@inheritDoc} */
48
     /** {@inheritDoc} */
55
     @Override
49
     @Override
56
     public void execute(final FrameContainer origin,
50
     public void execute(final FrameContainer origin,

+ 1
- 7
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java Wyświetl plik

37
 
37
 
38
 /**
38
 /**
39
  * The show topic command shows the user the current topic.
39
  * The show topic command shows the user the current topic.
40
- * @author chris
41
  */
40
  */
42
 @CommandOptions(allowOffline=false)
41
 @CommandOptions(allowOffline=false)
43
-public final class ShowTopic extends Command implements ExternalCommand,
42
+public class ShowTopic extends Command implements ExternalCommand,
44
         CommandInfo {
43
         CommandInfo {
45
 
44
 
46
-    /** Creates a new instance of ShowTopic. */
47
-    public ShowTopic() {
48
-        super();
49
-    }
50
-
51
     /** {@inheritDoc} */
45
     /** {@inheritDoc} */
52
     @Override
46
     @Override
53
     public void execute(final FrameContainer origin,
47
     public void execute(final FrameContainer origin,

+ 1
- 6
src/com/dmdirc/commandparser/commands/chat/Me.java Wyświetl plik

37
 /**
37
 /**
38
  * The me command sends a CTCP action to the current channel.
38
  * The me command sends a CTCP action to the current channel.
39
  */
39
  */
40
-public final class Me extends Command implements ValidatingCommand, CommandInfo {
41
-
42
-    /** Creates a new instance of Me. */
43
-    public Me() {
44
-        super();
45
-    }
40
+public class Me extends Command implements ValidatingCommand, CommandInfo {
46
 
41
 
47
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
48
     @Override
43
     @Override

+ 1
- 8
src/com/dmdirc/commandparser/commands/global/AliasCommand.java Wyświetl plik

40
 /**
40
 /**
41
  * The alias command allows users to create aliases on-the-fly.
41
  * The alias command allows users to create aliases on-the-fly.
42
  */
42
  */
43
-public final class AliasCommand extends Command implements
43
+public class AliasCommand extends Command implements
44
         IntelligentCommand, CommandInfo {
44
         IntelligentCommand, CommandInfo {
45
 
45
 
46
-    /**
47
-     * Creates a new instance of Active.
48
-     */
49
-    public AliasCommand() {
50
-        super();
51
-    }
52
-
53
     /** {@inheritDoc} */
46
     /** {@inheritDoc} */
54
     @Override
47
     @Override
55
     public void execute(final FrameContainer origin,
48
     public void execute(final FrameContainer origin,

+ 1
- 7
src/com/dmdirc/commandparser/commands/global/AllServers.java Wyświetl plik

37
 /**
37
 /**
38
  * The AllServers command allows users to issue commands to all servers.
38
  * The AllServers command allows users to issue commands to all servers.
39
  */
39
  */
40
-public final class AllServers extends Command implements IntelligentCommand,
40
+public class AllServers extends Command implements IntelligentCommand,
41
         CommandInfo{
41
         CommandInfo{
42
 
42
 
43
-    /** Creates a new instance of AllServers. */
44
-    public AllServers() {
45
-        super();
46
-    }
47
-
48
     /** {@inheritDoc} */
43
     /** {@inheritDoc} */
49
     @Override
44
     @Override
50
     public void execute(final FrameContainer origin,
45
     public void execute(final FrameContainer origin,
56
         }
51
         }
57
     }
52
     }
58
 
53
 
59
-
60
     /** {@inheritDoc} */
54
     /** {@inheritDoc} */
61
     @Override
55
     @Override
62
     public String getName() {
56
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/global/Clear.java Wyświetl plik

34
 /**
34
 /**
35
  * The clear command clears the main text area of the current window.
35
  * The clear command clears the main text area of the current window.
36
  */
36
  */
37
-public final class Clear extends Command implements IntelligentCommand,
37
+public class Clear extends Command implements IntelligentCommand,
38
         CommandInfo {
38
         CommandInfo {
39
 
39
 
40
-    /**
41
-     * Creates a new instance of Clear.
42
-     */
43
-    public Clear() {
44
-        super();
45
-    }
46
-
47
     /** {@inheritDoc} */
40
     /** {@inheritDoc} */
48
     @Override
41
     @Override
49
     public void execute(final FrameContainer origin,
42
     public void execute(final FrameContainer origin,
51
         origin.getDocument().clear();
44
         origin.getDocument().clear();
52
     }
45
     }
53
 
46
 
54
-
55
     /** {@inheritDoc} */
47
     /** {@inheritDoc} */
56
     @Override
48
     @Override
57
     public String getName() {
49
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Echo.java Wyświetl plik

44
 /**
44
 /**
45
  * The echo commands simply echos text to the current window.
45
  * The echo commands simply echos text to the current window.
46
  */
46
  */
47
-public final class Echo extends Command implements IntelligentCommand,
47
+public class Echo extends Command implements IntelligentCommand,
48
         CommandInfo {
48
         CommandInfo {
49
 
49
 
50
     /** The flag used to specify a timestamp for the echo command. */
50
     /** The flag used to specify a timestamp for the echo command. */

+ 1
- 9
src/com/dmdirc/commandparser/commands/global/Exit.java Wyświetl plik

35
  * When the client quits, it disconnects all servers (with the quit message
35
  * When the client quits, it disconnects all servers (with the quit message
36
  * supplied) and saves the config file.
36
  * supplied) and saves the config file.
37
  */
37
  */
38
-public final class Exit extends Command implements CommandInfo {
39
-
40
-    /**
41
-     * Creates a new instance of Exit.
42
-     */
43
-    public Exit() {
44
-        super();
45
-    }
38
+public class Exit extends Command implements CommandInfo {
46
 
39
 
47
     /** {@inheritDoc} */
40
     /** {@inheritDoc} */
48
     @Override
41
     @Override
52
                 : origin.getConfigManager().getOption("general", "closemessage"));
45
                 : origin.getConfigManager().getOption("general", "closemessage"));
53
     }
46
     }
54
 
47
 
55
-
56
     /** {@inheritDoc}. */
48
     /** {@inheritDoc}. */
57
     @Override
49
     @Override
58
     public String getName() {
50
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Help.java Wyświetl plik

45
  * their arguments, and a description. It is context-aware, so channel commands
45
  * their arguments, and a description. It is context-aware, so channel commands
46
  * are only displayed when in a channel window, for example.
46
  * are only displayed when in a channel window, for example.
47
  */
47
  */
48
-public final class Help extends Command implements IntelligentCommand, CommandInfo {
48
+public class Help extends Command implements IntelligentCommand, CommandInfo {
49
 
49
 
50
     /** {@inheritDoc} */
50
     /** {@inheritDoc} */
51
     @Override
51
     @Override

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/Ifplugin.java Wyświetl plik

40
  * The if plugin command allows the user to execute commands based on whether
40
  * The if plugin command allows the user to execute commands based on whether
41
  * or not a plugin is loaded.
41
  * or not a plugin is loaded.
42
  */
42
  */
43
-public final class Ifplugin extends Command implements IntelligentCommand,
43
+public class Ifplugin extends Command implements IntelligentCommand,
44
         CommandInfo {
44
         CommandInfo {
45
 
45
 
46
     /** {@inheritDoc} */
46
     /** {@inheritDoc} */

+ 1
- 2
src/com/dmdirc/commandparser/commands/global/LoadPlugin.java Wyświetl plik

36
 /**
36
 /**
37
  * Allows the user to load a plugin.
37
  * Allows the user to load a plugin.
38
  */
38
  */
39
-public final class LoadPlugin extends Command implements IntelligentCommand,
39
+public class LoadPlugin extends Command implements IntelligentCommand,
40
         CommandInfo {
40
         CommandInfo {
41
 
41
 
42
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
74
         }
74
         }
75
     }
75
     }
76
 
76
 
77
-
78
     /** {@inheritDoc} */
77
     /** {@inheritDoc} */
79
     @Override
78
     @Override
80
     public String getName() {
79
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/global/NewServer.java Wyświetl plik

45
 /**
45
 /**
46
  * The new server command allows users to open a new server window.
46
  * The new server command allows users to open a new server window.
47
  */
47
  */
48
-public final class NewServer extends Command implements IntelligentCommand,
48
+public class NewServer extends Command implements IntelligentCommand,
49
         CommandInfo {
49
         CommandInfo {
50
 
50
 
51
     /** {@inheritDoc} */
51
     /** {@inheritDoc} */

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/Notify.java Wyświetl plik

37
 /**
37
 /**
38
  * The notify command allows the user to set the notification colour for a
38
  * The notify command allows the user to set the notification colour for a
39
  * window.
39
  * window.
40
- *
41
- * @author chris
42
  */
40
  */
43
-public final class Notify extends Command implements IntelligentCommand,
41
+public class Notify extends Command implements IntelligentCommand,
44
         CommandInfo {
42
         CommandInfo {
45
 
43
 
46
-    /**
47
-     * Creates a new instance of Notify.
48
-     */
49
-    public Notify() {
50
-        super();
51
-    }
52
-
53
     /** {@inheritDoc} */
44
     /** {@inheritDoc} */
54
     @Override
45
     @Override
55
     public void execute(final FrameContainer origin,
46
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/OpenWindow.java Wyświetl plik

35
 
35
 
36
 /**
36
 /**
37
  * Opens a new window.
37
  * Opens a new window.
38
- *
39
- * @author chris
40
  */
38
  */
41
 public class OpenWindow extends Command implements IntelligentCommand, CommandInfo {
39
 public class OpenWindow extends Command implements IntelligentCommand, CommandInfo {
42
 
40
 
43
-    /**
44
-     * Creates a new instance of OpenWindow.
45
-     */
46
-    public OpenWindow() {
47
-        super();
48
-    }
49
-
50
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
51
     @Override
42
     @Override
52
     public void execute(final FrameContainer origin,
43
     public void execute(final FrameContainer origin,

+ 0
- 10
src/com/dmdirc/commandparser/commands/global/ReloadActions.java Wyświetl plik

34
 
34
 
35
 /**
35
 /**
36
  * Allows the user to reload actions.
36
  * Allows the user to reload actions.
37
- *
38
- * @author chris
39
  */
37
  */
40
 public final class ReloadActions extends Command implements IntelligentCommand,
38
 public final class ReloadActions extends Command implements IntelligentCommand,
41
         CommandInfo {
39
         CommandInfo {
42
 
40
 
43
-    /**
44
-     * Creates a new instance of ReloadActions.
45
-     */
46
-    public ReloadActions() {
47
-        super();
48
-    }
49
-
50
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
51
     @Override
42
     @Override
52
     public void execute(final FrameContainer origin,
43
     public void execute(final FrameContainer origin,
55
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Actions reloaded.");
46
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Actions reloaded.");
56
     }
47
     }
57
 
48
 
58
-
59
     /** {@inheritDoc}. */
49
     /** {@inheritDoc}. */
60
     @Override
50
     @Override
61
     public String getName() {
51
     public String getName() {

+ 0
- 9
src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java Wyświetl plik

34
 
34
 
35
 /**
35
 /**
36
  * Allows the user to reload identities.
36
  * Allows the user to reload identities.
37
- *
38
- * @author chris
39
  */
37
  */
40
 public class ReloadIdentities extends Command implements IntelligentCommand,
38
 public class ReloadIdentities extends Command implements IntelligentCommand,
41
         CommandInfo {
39
         CommandInfo {
42
 
40
 
43
-    /**
44
-     * Creates a new instance of ReloadIdentities.
45
-     */
46
-    public ReloadIdentities() {
47
-        super();
48
-    }
49
-
50
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
51
     @Override
42
     @Override
52
     public void execute(final FrameContainer origin,
43
     public void execute(final FrameContainer origin,

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java Wyświetl plik

35
 
35
 
36
 /**
36
 /**
37
  * Allows the user to reload a plugin.
37
  * Allows the user to reload a plugin.
38
- *
39
- * @author chris
40
  */
38
  */
41
-public final class ReloadPlugin extends Command implements IntelligentCommand,
39
+public class ReloadPlugin extends Command implements IntelligentCommand,
42
         CommandInfo {
40
         CommandInfo {
43
 
41
 
44
-    /**
45
-     * Creates a new instance of ReloadPlugin.
46
-     */
47
-    public ReloadPlugin() {
48
-        super();
49
-    }
50
-
51
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
52
     @Override
43
     @Override
53
     public void execute(final FrameContainer origin,
44
     public void execute(final FrameContainer origin,

+ 0
- 10
src/com/dmdirc/commandparser/commands/global/SaveConfig.java Wyświetl plik

34
 
34
 
35
 /**
35
 /**
36
  * Allows the user to save the config file.
36
  * Allows the user to save the config file.
37
- *
38
- * @author chris
39
  */
37
  */
40
 public final class SaveConfig extends Command implements IntelligentCommand,
38
 public final class SaveConfig extends Command implements IntelligentCommand,
41
         CommandInfo {
39
         CommandInfo {
42
 
40
 
43
-    /**
44
-     * Creates a new instance of SaveConfig.
45
-     */
46
-    public SaveConfig() {
47
-        super();
48
-    }
49
-
50
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
51
     @Override
42
     @Override
52
     public void execute(final FrameContainer origin,
43
     public void execute(final FrameContainer origin,
56
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Configuration file saved.");
47
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Configuration file saved.");
57
     }
48
     }
58
 
49
 
59
-
60
     /** {@inheritDoc} */
50
     /** {@inheritDoc} */
61
     @Override
51
     @Override
62
     public String getName() {
52
     public String getName() {

+ 1
- 3
src/com/dmdirc/commandparser/commands/global/Set.java Wyświetl plik

44
 
44
 
45
 /**
45
 /**
46
  * The set command allows the user to inspect and change global config settings.
46
  * The set command allows the user to inspect and change global config settings.
47
- *
48
- * @author chris
49
  */
47
  */
50
-public final class Set extends Command implements IntelligentCommand, CommandInfo {
48
+public class Set extends Command implements IntelligentCommand, CommandInfo {
51
 
49
 
52
     /** The flag to indicate the set command should apply to a server's settings. */
50
     /** The flag to indicate the set command should apply to a server's settings. */
53
     private final CommandFlag serverFlag = new CommandFlag("server");
51
     private final CommandFlag serverFlag = new CommandFlag("server");

+ 1
- 10
src/com/dmdirc/commandparser/commands/global/UnloadPlugin.java Wyświetl plik

35
 
35
 
36
 /**
36
 /**
37
  * Allows the user to unload a plugin.
37
  * Allows the user to unload a plugin.
38
- *
39
- * @author chris
40
  */
38
  */
41
-public final class UnloadPlugin extends Command implements IntelligentCommand,
39
+public class UnloadPlugin extends Command implements IntelligentCommand,
42
         CommandInfo {
40
         CommandInfo {
43
 
41
 
44
-    /**
45
-     * Creates a new instance of UnloadPlugin.
46
-     */
47
-    public UnloadPlugin() {
48
-        super();
49
-    }
50
-
51
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
52
     @Override
43
     @Override
53
     public void execute(final FrameContainer origin,
44
     public void execute(final FrameContainer origin,

+ 0
- 26
src/com/dmdirc/commandparser/commands/query/package-info.java Wyświetl plik

1
-/*
2
- * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-/**
24
- * Commands related to or associated with a query.
25
- */
26
-package com.dmdirc.commandparser.commands.query;

+ 1
- 7
src/com/dmdirc/commandparser/commands/server/AllChannels.java Wyświetl plik

38
  * The AllChannels command allows the user to issue a command to all channels
38
  * The AllChannels command allows the user to issue a command to all channels
39
  * on a server.
39
  * on a server.
40
  */
40
  */
41
-public final class AllChannels extends Command implements IntelligentCommand,
41
+public class AllChannels extends Command implements IntelligentCommand,
42
         CommandInfo {
42
         CommandInfo {
43
 
43
 
44
-    /** Creates a new instance of AllChannels. */
45
-    public AllChannels() {
46
-        super();
47
-    }
48
-
49
     /** {@inheritDoc} */
44
     /** {@inheritDoc} */
50
     @Override
45
     @Override
51
     public void execute(final FrameContainer origin,
46
     public void execute(final FrameContainer origin,
59
         }
54
         }
60
     }
55
     }
61
 
56
 
62
-
63
     /** {@inheritDoc} */
57
     /** {@inheritDoc} */
64
     @Override
58
     @Override
65
     public String getName() {
59
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Away.java Wyświetl plik

36
  * The away command allows the user to set their away message.
36
  * The away command allows the user to set their away message.
37
  */
37
  */
38
 @CommandOptions(allowOffline = false)
38
 @CommandOptions(allowOffline = false)
39
-public final class Away extends Command implements CommandInfo {
39
+public class Away extends Command implements CommandInfo {
40
 
40
 
41
     /** {@inheritDoc} */
41
     /** {@inheritDoc} */
42
     @Override
42
     @Override
52
         }
52
         }
53
     }
53
     }
54
 
54
 
55
-
56
     /** {@inheritDoc} */
55
     /** {@inheritDoc} */
57
     @Override
56
     @Override
58
     public String getName() {
57
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Back.java Wyświetl plik

38
  * The back command allows the user to unset their away status.
38
  * The back command allows the user to unset their away status.
39
  */
39
  */
40
 @CommandOptions(allowOffline = false)
40
 @CommandOptions(allowOffline = false)
41
-public final class Back extends Command implements IntelligentCommand, CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of Back.
45
-     */
46
-    public Back() {
47
-        super();
48
-    }
41
+public class Back extends Command implements IntelligentCommand, CommandInfo {
49
 
42
 
50
     /** {@inheritDoc} */
43
     /** {@inheritDoc} */
51
     @Override
44
     @Override
55
         server.getParser().getLocalClient().setBack();
48
         server.getParser().getLocalClient().setBack();
56
     }
49
     }
57
 
50
 
58
-
59
     /** {@inheritDoc}. */
51
     /** {@inheritDoc}. */
60
     @Override
52
     @Override
61
     public String getName() {
53
     public String getName() {

+ 1
- 8
src/com/dmdirc/commandparser/commands/server/ChangeServer.java Wyświetl plik

38
 /**
38
 /**
39
  * The /server command allows the user to connect to a new server.
39
  * The /server command allows the user to connect to a new server.
40
  */
40
  */
41
-public final class ChangeServer extends Command implements CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of ChangeServer.
45
-     */
46
-    public ChangeServer() {
47
-        super();
48
-    }
41
+public class ChangeServer extends Command implements CommandInfo {
49
 
42
 
50
     /** {@inheritDoc} */
43
     /** {@inheritDoc} */
51
     @Override
44
     @Override

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Ctcp.java Wyświetl plik

39
  * Allows the user to send CTCP messages.
39
  * Allows the user to send CTCP messages.
40
  */
40
  */
41
 @CommandOptions(allowOffline = false)
41
 @CommandOptions(allowOffline = false)
42
-public final class Ctcp extends Command implements IntelligentCommand,
42
+public class Ctcp extends Command implements IntelligentCommand,
43
         CommandInfo {
43
         CommandInfo {
44
 
44
 
45
     /** {@inheritDoc} */
45
     /** {@inheritDoc} */
57
         }
57
         }
58
     }
58
     }
59
 
59
 
60
-
61
     /** {@inheritDoc}. */
60
     /** {@inheritDoc}. */
62
     @Override
61
     @Override
63
     public String getName() {
62
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Disconnect.java Wyświetl plik

34
 /**
34
 /**
35
  * The disconnect command disconnects from the current server.
35
  * The disconnect command disconnects from the current server.
36
  */
36
  */
37
-public final class Disconnect extends Command implements CommandInfo {
37
+public class Disconnect extends Command implements CommandInfo {
38
 
38
 
39
     /** {@inheritDoc} */
39
     /** {@inheritDoc} */
40
     @Override
40
     @Override
52
         server.disconnect(line);
52
         server.disconnect(line);
53
     }
53
     }
54
 
54
 
55
-
56
     /** {@inheritDoc} */
55
     /** {@inheritDoc} */
57
     @Override
56
     @Override
58
     public String getName() {
57
     public String getName() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/server/Ignore.java Wyświetl plik

42
 /**
42
 /**
43
  * Allows the user to add/view/delete ignores.
43
  * Allows the user to add/view/delete ignores.
44
  */
44
  */
45
-public final class Ignore extends Command implements IntelligentCommand,
45
+public class Ignore extends Command implements IntelligentCommand,
46
         CommandInfo {
46
         CommandInfo {
47
 
47
 
48
     /** {@inheritDoc} */
48
     /** {@inheritDoc} */

+ 0
- 1
src/com/dmdirc/commandparser/commands/server/JoinChannelCommand.java Wyświetl plik

91
         server.join(!args.isSilent(), channels.toArray(new ChannelJoinRequest[0]));
91
         server.join(!args.isSilent(), channels.toArray(new ChannelJoinRequest[0]));
92
     }
92
     }
93
 
93
 
94
-
95
     /** {@inheritDoc} */
94
     /** {@inheritDoc} */
96
     @Override
95
     @Override
97
     public String getName() {
96
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Message.java Wyświetl plik

42
  * Allows the user to send privmsgs.
42
  * Allows the user to send privmsgs.
43
  */
43
  */
44
 @CommandOptions(allowOffline = false)
44
 @CommandOptions(allowOffline = false)
45
-public final class Message extends Command implements IntelligentCommand,
45
+public class Message extends Command implements IntelligentCommand,
46
         WrappableCommand, CommandInfo {
46
         WrappableCommand, CommandInfo {
47
 
47
 
48
     /** {@inheritDoc} */
48
     /** {@inheritDoc} */
79
         }
79
         }
80
     }
80
     }
81
 
81
 
82
-
83
     /** {@inheritDoc} */
82
     /** {@inheritDoc} */
84
     @Override
83
     @Override
85
     public String getName() {
84
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Nick.java Wyświetl plik

39
  * Allows the user to change nickname.
39
  * Allows the user to change nickname.
40
  */
40
  */
41
 @CommandOptions(allowOffline = false)
41
 @CommandOptions(allowOffline = false)
42
-public final class Nick extends Command implements IntelligentCommand,
42
+public class Nick extends Command implements IntelligentCommand,
43
         CommandInfo {
43
         CommandInfo {
44
 
44
 
45
     /** {@inheritDoc} */
45
     /** {@inheritDoc} */
55
         server.getParser().getLocalClient().setNickname(args.getArguments()[0]);
55
         server.getParser().getLocalClient().setNickname(args.getArguments()[0]);
56
     }
56
     }
57
 
57
 
58
-
59
     /** {@inheritDoc} */
58
     /** {@inheritDoc} */
60
     @Override
59
     @Override
61
     public String getName() {
60
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/Notice.java Wyświetl plik

39
  * Allows the user to send notices.
39
  * Allows the user to send notices.
40
  */
40
  */
41
 @CommandOptions(allowOffline = false)
41
 @CommandOptions(allowOffline = false)
42
-public final class Notice extends Command implements IntelligentCommand,
42
+public class Notice extends Command implements IntelligentCommand,
43
         CommandInfo {
43
         CommandInfo {
44
 
44
 
45
     /** {@inheritDoc} */
45
     /** {@inheritDoc} */
57
         }
57
         }
58
     }
58
     }
59
 
59
 
60
-
61
     /** {@inheritDoc} */
60
     /** {@inheritDoc} */
62
     @Override
61
     @Override
63
     public String getName() {
62
     public String getName() {

+ 1
- 2
src/com/dmdirc/commandparser/commands/server/OpenQuery.java Wyświetl plik

42
 /**
42
 /**
43
  * Allows the user to open a query dialog with another user.
43
  * Allows the user to open a query dialog with another user.
44
  */
44
  */
45
-public final class OpenQuery extends Command implements IntelligentCommand,
45
+public class OpenQuery extends Command implements IntelligentCommand,
46
         WrappableCommand, CommandInfo {
46
         WrappableCommand, CommandInfo {
47
 
47
 
48
     /** {@inheritDoc} */
48
     /** {@inheritDoc} */
76
         }
76
         }
77
     }
77
     }
78
 
78
 
79
-
80
     /** {@inheritDoc} */
79
     /** {@inheritDoc} */
81
     @Override
80
     @Override
82
     public String getName() {
81
     public String getName() {

+ 1
- 10
src/com/dmdirc/commandparser/commands/server/Raw.java Wyświetl plik

35
 /**
35
 /**
36
  * The raw command allows the user to send a raw line of text directly to the
36
  * The raw command allows the user to send a raw line of text directly to the
37
  * irc server.
37
  * irc server.
38
- * @author chris
39
  */
38
  */
40
 @CommandOptions(allowOffline=false)
39
 @CommandOptions(allowOffline=false)
41
-public final class Raw extends Command implements CommandInfo {
42
-
43
-    /**
44
-     * Creates a new instance of Raw.
45
-     */
46
-    public Raw() {
47
-        super();
48
-    }
40
+public class Raw extends Command implements CommandInfo {
49
 
41
 
50
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
51
     @Override
43
     @Override
58
         sendLine(origin, args.isSilent(), "rawCommand", line);
50
         sendLine(origin, args.isSilent(), "rawCommand", line);
59
     }
51
     }
60
 
52
 
61
-
62
     /** {@inheritDoc} */
53
     /** {@inheritDoc} */
63
     @Override
54
     @Override
64
     public String getName() {
55
     public String getName() {

+ 1
- 4
src/com/dmdirc/commandparser/commands/server/RawServerCommand.java Wyświetl plik

35
 /**
35
 /**
36
  * Implements a raw server command (i.e., a command that is sent to the server
36
  * Implements a raw server command (i.e., a command that is sent to the server
37
  * as-is.
37
  * as-is.
38
- *
39
- * @author chris
40
  */
38
  */
41
 @CommandOptions(allowOffline=false)
39
 @CommandOptions(allowOffline=false)
42
-public final class RawServerCommand extends Command implements CommandInfo {
40
+public class RawServerCommand extends Command implements CommandInfo {
43
 
41
 
44
     /** The name of this raw command. */
42
     /** The name of this raw command. */
45
     private final String myName;
43
     private final String myName;
63
         server.getParser().sendRawMessage(myName.toUpperCase() + " " + args.getArgumentsAsString());
61
         server.getParser().sendRawMessage(myName.toUpperCase() + " " + args.getArgumentsAsString());
64
     }
62
     }
65
 
63
 
66
-
67
     /** {@inheritDoc} */
64
     /** {@inheritDoc} */
68
     @Override
65
     @Override
69
     public String getName() {
66
     public String getName() {

+ 1
- 9
src/com/dmdirc/commandparser/commands/server/Reconnect.java Wyświetl plik

33
 
33
 
34
 /**
34
 /**
35
  * The reconnect command reconnects to the current server.
35
  * The reconnect command reconnects to the current server.
36
- * @author chris
37
  */
36
  */
38
-public final class Reconnect extends Command implements CommandInfo {
39
-
40
-    /**
41
-     * Creates a new instance of Reconnect.
42
-     */
43
-    public Reconnect() {
44
-        super();
45
-    }
37
+public class Reconnect extends Command implements CommandInfo {
46
 
38
 
47
     /** {@inheritDoc} */
39
     /** {@inheritDoc} */
48
     @Override
40
     @Override

+ 0
- 6
src/com/dmdirc/commandparser/commands/server/ServerSettings.java Wyświetl plik

37
 /**
37
 /**
38
  * Opens the server settings window for the server.
38
  * Opens the server settings window for the server.
39
  *
39
  *
40
- * @author Simon
41
  * @since 0.6.4
40
  * @since 0.6.4
42
  */
41
  */
43
 @CommandOptions(allowOffline=false)
42
 @CommandOptions(allowOffline=false)
44
 public class ServerSettings extends Command implements IntelligentCommand,
43
 public class ServerSettings extends Command implements IntelligentCommand,
45
         CommandInfo {
44
         CommandInfo {
46
 
45
 
47
-    /** Creates a new instance of ServerSettings. */
48
-    public ServerSettings() {
49
-        super();
50
-    }
51
-
52
     /** {@inheritDoc} */
46
     /** {@inheritDoc} */
53
     @Override
47
     @Override
54
     public void execute(final FrameContainer origin,
48
     public void execute(final FrameContainer origin,

+ 0
- 9
src/com/dmdirc/commandparser/commands/server/Umode.java Wyświetl plik

35
 
35
 
36
 /**
36
 /**
37
  * Allows the user to change user modes.
37
  * Allows the user to change user modes.
38
- *
39
- * @author chris
40
  */
38
  */
41
 @CommandOptions(allowOffline=false)
39
 @CommandOptions(allowOffline=false)
42
 public class Umode extends Command implements CommandInfo {
40
 public class Umode extends Command implements CommandInfo {
43
 
41
 
44
-    /**
45
-     * Creates a new instance of Umode.
46
-     */
47
-    public Umode() {
48
-        super();
49
-    }
50
-
51
     /** {@inheritDoc} */
42
     /** {@inheritDoc} */
52
     @Override
43
     @Override
53
     public void execute(final FrameContainer origin,
44
     public void execute(final FrameContainer origin,

Ładowanie…
Anuluj
Zapisz