Преглед изворни кода

Core javadoc/general tidying (Issue 633)

git-svn-id: http://svn.dmdirc.com/trunk@3132 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith пре 16 година
родитељ
комит
1fe5669b4c

+ 20
- 0
src/com/dmdirc/Channel.java Прегледај датотеку

@@ -381,11 +381,21 @@ public final class Channel extends MessageTarget
381 381
         }
382 382
     }
383 383
     
384
+    /**
385
+     * Adds a ChannelClient to this Channel.
386
+     * 
387
+     * @param client The client to be added
388
+     */
384 389
     public void addClient(final ChannelClientInfo client) {
385 390
         window.addName(client);
386 391
         tabCompleter.addEntry(client.getNickname());   
387 392
     }
388 393
     
394
+    /**
395
+     * Removes the specified ChannelClient from this channel.
396
+     * 
397
+     * @param client The client to be removed
398
+     */
389 399
     public void removeClient(final ChannelClientInfo client) {
390 400
         window.removeName(client);
391 401
         tabCompleter.removeEntry(client.getNickname());
@@ -395,12 +405,22 @@ public final class Channel extends MessageTarget
395 405
         }
396 406
     }
397 407
     
408
+    /**
409
+     * Renames a client that is in this channel.
410
+     * 
411
+     * @param oldName The old nickname of the client
412
+     * @param newName The new nickname of the client
413
+     */
398 414
     public void renameClient(final String oldName, final String newName) {
399 415
         tabCompleter.removeEntry(oldName);
400 416
         tabCompleter.addEntry(newName);        
401 417
         refreshClients();
402 418
     }
403 419
     
420
+    /**
421
+     * Refreshes the list of clients stored by this channel. Should be called
422
+     * when (visible) user modes or nicknames change.
423
+     */
404 424
     public void refreshClients() {
405 425
         window.updateNames();
406 426
     }

+ 12
- 0
src/com/dmdirc/ChannelEventHandler.java Прегледај датотеку

@@ -42,8 +42,14 @@ public final class ChannelEventHandler extends EventHandler implements
42 42
         IChannelNickChanged, IChannelModeChanged, IChannelUserModeChanged,
43 43
         IChannelCTCP, IAwayStateOther {
44 44
     
45
+    /** The channel that owns this event handler. */
45 46
     private final Channel owner;
46 47
     
48
+    /**
49
+     * Creates a new instance of ChannelEventHandler.
50
+     * 
51
+     * @param owner The channel that owns this event handler.
52
+     */
47 53
     public ChannelEventHandler(final Channel owner) {
48 54
         this.owner = owner;
49 55
     }
@@ -65,6 +71,12 @@ public final class ChannelEventHandler extends EventHandler implements
65 71
         return owner.getServer().getParser();
66 72
     }
67 73
     
74
+    /**
75
+     * Determines if the specified client represents us.
76
+     * 
77
+     * @param client The client to be tested
78
+     * @return True if the client is ourself, false otherwise.
79
+     */
68 80
     protected boolean isMyself(final ChannelClientInfo client) {
69 81
         return client.getClient().equals(owner.getServer().getParser().getMyself());
70 82
     }

+ 0
- 1
src/com/dmdirc/FrameContainer.java Прегледај датотеку

@@ -23,7 +23,6 @@
23 23
 package com.dmdirc;
24 24
 
25 25
 import com.dmdirc.config.ConfigManager;
26
-import com.dmdirc.config.IdentityManager;
27 26
 import com.dmdirc.interfaces.IconChangeListener;
28 27
 import com.dmdirc.interfaces.NotificationListener;
29 28
 import com.dmdirc.interfaces.SelectionListener;

+ 3
- 0
src/com/dmdirc/IconManager.java Прегледај датотеку

@@ -48,7 +48,10 @@ public final class IconManager implements ConfigChangeListener {
48 48
     /** Previously created IconManager instance. */
49 49
     private static final IconManager me = new IconManager();
50 50
         
51
+    /** A map of existing icons. */
51 52
     private final Map<String, Icon> icons;
53
+    
54
+    /** A map of existing images. */
52 55
     private final Map<String, Image> images;
53 56
     
54 57
     /** Creates a new instance of IconManager. */

+ 1
- 0
src/com/dmdirc/IgnoreList.java Прегледај датотеку

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc;
24 24
 
25 25
 import com.dmdirc.parser.RegexStringList;
26
+
26 27
 import java.util.ArrayList;
27 28
 import java.util.List;
28 29
 

+ 1
- 1
src/com/dmdirc/Query.java Прегледај датотеку

@@ -42,8 +42,8 @@ import com.dmdirc.ui.WindowManager;
42 42
 import com.dmdirc.ui.input.TabCompleter;
43 43
 import com.dmdirc.ui.interfaces.InputWindow;
44 44
 import com.dmdirc.ui.interfaces.QueryWindow;
45
-import java.awt.Toolkit;
46 45
 
46
+import java.awt.Toolkit;
47 47
 import java.io.Serializable;
48 48
 
49 49
 /**

+ 0
- 2
src/com/dmdirc/Raw.java Прегледај датотеку

@@ -55,8 +55,6 @@ public final class Raw extends WritableFrameContainer implements IDataIn,
55 55
     /** An InputWindow used for displaying the raw data.*/
56 56
     private InputWindow window;
57 57
     
58
-    private boolean isClosing = false;
59
-    
60 58
     /**
61 59
      * Creates a new instance of Raw.
62 60
      *

+ 3
- 0
src/com/dmdirc/Server.java Прегледај датотеку

@@ -1178,6 +1178,9 @@ public final class Server extends WritableFrameContainer implements Serializable
1178 1178
         checkModeAliases();
1179 1179
     }
1180 1180
     
1181
+    /**
1182
+     * Checks that we have the neccessary mode aliases for this server.
1183
+     */
1181 1184
     private void checkModeAliases() {
1182 1185
         // Check we have mode aliases
1183 1186
         final String modes = parser.getBoolChanModes() + parser.getListChanModes()

+ 8
- 1
src/com/dmdirc/WritableFrameContainer.java Прегледај датотеку

@@ -143,7 +143,7 @@ public abstract class WritableFrameContainer extends FrameContainer {
143 143
     }
144 144
     
145 145
     /**
146
-     * Handles general server notifications (i.e., ones note tied to a
146
+     * Handles general server notifications (i.e., ones not tied to a
147 147
      * specific window). The user can select where the notifications should
148 148
      * go in their config.
149 149
      *
@@ -155,6 +155,13 @@ public abstract class WritableFrameContainer extends FrameContainer {
155 155
                 getConfigManager().getOption("notifications", messageType, "self"), args);
156 156
     }
157 157
     
158
+    /**
159
+     * Despatches a notification of the specified type to the specified target.
160
+     * 
161
+     * @param messageType The type of the message that is being sent
162
+     * @param messageTarget The target of the message
163
+     * @param args The arguments for the message
164
+     */
158 165
     protected void despatchNotification(final String messageType,
159 166
             final String messageTarget, final Object... args) {
160 167
         

+ 25
- 0
src/com/dmdirc/actions/Action.java Прегледај датотеку

@@ -55,10 +55,15 @@ public class Action extends ActionModel implements Serializable {
55 55
      */
56 56
     private static final long serialVersionUID = 1;
57 57
 
58
+    /** The domain name for condition trees. */
58 59
     private static final String DOMAIN_CONDITIONTREE = "conditiontree".intern();
60
+    /** The domain name for format changes. */
59 61
     private static final String DOMAIN_FORMAT = "format".intern();
62
+    /** The domain name for meta-data. */
60 63
     private static final String DOMAIN_METADATA = "metadata".intern();
64
+    /** The domain name for response information. */
61 65
     private static final String DOMAIN_RESPONSE = "response".intern();
66
+    /** The domain name for triggers. */
62 67
     private static final String DOMAIN_TRIGGERS = "triggers".intern();
63 68
 
64 69
     /** The file containing this action. */
@@ -277,6 +282,12 @@ public class Action extends ActionModel implements Serializable {
277 282
         }
278 283
     }
279 284
 
285
+    /**
286
+     * Loads a list of triggers with the specified names.
287
+     * 
288
+     * @param newTriggers A list of trigger names
289
+     * @return True if all triggers are valid and compatible, false otherwise.
290
+     */
280 291
     private boolean loadTriggers(final List<String> newTriggers) {
281 292
         triggers = new ActionType[newTriggers.size()];
282 293
 
@@ -449,6 +460,12 @@ public class Action extends ActionModel implements Serializable {
449 460
         }
450 461
     }
451 462
 
463
+    /**
464
+     * Reads a condition from the specified configuration section.
465
+     * 
466
+     * @param data The relevant section of the action configuration
467
+     * @return True if the condition is valid, false otherwise
468
+     */
452 469
     private boolean readCondition(final Map<String,String> data) {
453 470
         int arg = 0;
454 471
         ActionComponent component = null;
@@ -518,6 +535,14 @@ public class Action extends ActionModel implements Serializable {
518 535
         return true;
519 536
     }
520 537
 
538
+    /**
539
+     * Reads a component from the specified data section for the specified argument.
540
+     * 
541
+     * @param data The relevant section of the action configuration
542
+     * @param arg The argument number that the component should apply to
543
+     * @return The corresponding ActionComponent, or null if the specified
544
+     * component is invalid.
545
+     */
521 546
     private ActionComponent readComponent(final Map<String, String> data, final int arg) {
522 547
         final String componentName = data.get("component");
523 548
         ActionComponent component;

+ 20
- 1
src/com/dmdirc/actions/ActionCondition.java Прегледај датотеку

@@ -47,7 +47,9 @@ public class ActionCondition {
47 47
     private String starget;
48 48
     
49 49
     /**
50
-     * Creates a new instance of ActionCondition.
50
+     * Creates a new instance of ActionCondition that compares the output of
51
+     * a component to a string.
52
+     * 
51 53
      * @param arg The argument number to be tested
52 54
      * @param component The component to be tested
53 55
      * @param comparison The comparison to be used
@@ -63,6 +65,13 @@ public class ActionCondition {
63 65
         this.target = target;
64 66
     }
65 67
     
68
+    /**
69
+     * Creates a new instance of ActionCondition that compares two strings.
70
+     * 
71
+     * @param starget The first target for comparison.
72
+     * @param comparison The comparison to be used
73
+     * @param target The second target for the comparison
74
+     */
66 75
     public ActionCondition(final String starget, final ActionComparison comparison,
67 76
             final String target) {
68 77
         super();
@@ -162,10 +171,20 @@ public class ActionCondition {
162 171
         this.target = target;
163 172
     }
164 173
 
174
+    /**
175
+     * Retrieves the starget of this condition.
176
+     * 
177
+     * @return This condition's starget, or null if none was set.
178
+     */
165 179
     public String getStarget() {
166 180
         return starget;
167 181
     }
168 182
 
183
+    /**
184
+     * Sets the starget for this condition.
185
+     * 
186
+     * @param starget The new starget for this condition.
187
+     */
169 188
     public void setStarget(final String starget) {
170 189
         this.starget = starget;
171 190
     }

+ 62
- 0
src/com/dmdirc/actions/ActionGroup.java Прегледај датотеку

@@ -39,58 +39,120 @@ public class ActionGroup extends ArrayList<Action> {
39 39
      */
40 40
     private static final long serialVersionUID = 1;    
41 41
     
42
+    /** The name of this action group. */
42 43
     private String name = null;
43 44
     
45
+    /** The description of this action group. */
44 46
     private String description = null;
45 47
     
48
+    /** The author of this action group. */
46 49
     private String author = null;
47 50
     
51
+    /** The component number of this action group (for updating). */
48 52
     private int component = -1;
49 53
     
54
+    /** The version number of this action group. */
50 55
     private int version = -1;
51 56
     
57
+    /** A list of settings used by this action group. */
52 58
     private final List<ActionSetting> settings = new ArrayList<ActionSetting>();
53 59
 
60
+    /**
61
+     * Creates a new instance of ActionGroup.
62
+     * 
63
+     * @param name The name of this action group
64
+     */
54 65
     public ActionGroup(final String name) {
55 66
         this.name = name;
56 67
     }
57 68
 
69
+    /**
70
+     * Retrieves the author of this ActionGroup.
71
+     * 
72
+     * @return This action group's author, or null if the author isn't specified
73
+     */
58 74
     public String getAuthor() {
59 75
         return author;
60 76
     }
61 77
 
78
+    /**
79
+     * Sets the author of this ActionGroup.
80
+     * 
81
+     * @param author The new author for this action group
82
+     */
62 83
     public void setAuthor(final String author) {
63 84
         this.author = author;
64 85
     }
65 86
 
87
+    /**
88
+     * Retrieves the description of this action group.
89
+     * 
90
+     * @return This action group's description, or null if none is specified
91
+     */
66 92
     public String getDescription() {
67 93
         return description;
68 94
     }
69 95
 
96
+    /**
97
+     * Sets the description for this action group.
98
+     * 
99
+     * @param description The new description for this action group
100
+     */
70 101
     public void setDescription(final String description) {
71 102
         this.description = description;
72 103
     }
73 104
 
105
+    /**
106
+     * Retrieves the name of this action group.
107
+     * 
108
+     * @return This action group's name
109
+     */
74 110
     public String getName() {
75 111
         return name;
76 112
     }
77 113
 
114
+    /**
115
+     * Retrieves a list of settings used by this action group.
116
+     * 
117
+     * @return A list of settings used by this action group.
118
+     */
78 119
     public List<ActionSetting> getSettings() {
79 120
         return settings;
80 121
     }
81 122
 
123
+    /**
124
+     * Retrieves the version number of this action group.
125
+     * 
126
+     * @return This action group's version number, or -1 if none is specified.
127
+     */
82 128
     public int getVersion() {
83 129
         return version;
84 130
     }
85 131
 
132
+    /**
133
+     * Sets the version of this action group.
134
+     * 
135
+     * @param version This action group's new version number.
136
+     */
86 137
     public void setVersion(final int version) {
87 138
         this.version = version;
88 139
     }
89 140
 
141
+    /**
142
+     * Retrieves the addon site component number for this action group.
143
+     * 
144
+     * @return The component number for this action group, or -1 if none is
145
+     * specified.
146
+     */
90 147
     public int getComponent() {
91 148
         return component;
92 149
     }
93 150
 
151
+    /**
152
+     * Sets the addon site component number for this action group.
153
+     * 
154
+     * @param component The component number for this action group
155
+     */
94 156
     public void setComponent(final int component) {
95 157
         this.component = component;
96 158
     }

+ 46
- 1
src/com/dmdirc/actions/ActionSetting.java Прегледај датотеку

@@ -23,18 +23,33 @@
23 23
 package com.dmdirc.actions;
24 24
 
25 25
 /**
26
- *
26
+ * Represents a setting required by an Action pack.
27
+ * 
27 28
  * @author chris
28 29
  */
29 30
 public class ActionSetting {
30 31
     
32
+    /** The possible types of setting used by action packs. */
31 33
     public static enum TYPE {
34
+        /** A freeform text setting. */
32 35
         TEXT,
36
+        /** A colour setting. */
33 37
         COLOUR,
38
+        /** A numerical setting. */
34 39
         NUMBER,
40
+        /** A boolean setting. */
35 41
         BOOLEAN
36 42
     }
37 43
 
44
+    /**
45
+     * Creates a new instance of ActionSetting.
46
+     * 
47
+     * @param type The type of setting.
48
+     * @param setting The name of the setting.
49
+     * @param title The user-friendly name of the setting.
50
+     * @param tooltip The tooltip to show for this setting.
51
+     * @param fallback The default value of this setting.
52
+     */
38 53
     public ActionSetting(TYPE type, String setting, String title, String tooltip, String fallback) {
39 54
         this.type = type;
40 55
         this.setting = setting;
@@ -43,32 +58,62 @@ public class ActionSetting {
43 58
         this.fallback = fallback;
44 59
     }
45 60
     
61
+    /** The type of this setting. */
46 62
     private TYPE type;
47 63
     
64
+    /** The name (key) of this setting. */
48 65
     private String setting;
49 66
     
67
+    /** The user-friendly name of this setting. */
50 68
     private String title;
51 69
     
70
+    /** The tooltip to show for this setting. */
52 71
     private String tooltip;
53 72
     
73
+    /** The default value of this setting. */
54 74
     private String fallback;
55 75
 
76
+    /**
77
+     * Retrieves the default value of this setting.
78
+     * 
79
+     * @return This setting's default value.
80
+     */
56 81
     public String getFallback() {
57 82
         return fallback;
58 83
     }
59 84
 
85
+    /**
86
+     * Retrieves the name (key) of this setting.
87
+     * 
88
+     * @return This setting's name
89
+     */    
60 90
     public String getSetting() {
61 91
         return setting;
62 92
     }
63 93
 
94
+    /**
95
+     * Retrieves the user-friendly name of this setting.
96
+     * 
97
+     * @return This setting's user-friendly name.
98
+     */    
64 99
     public String getTitle() {
65 100
         return title;
66 101
     }
67 102
 
103
+    /**
104
+     * Retrieves the tooltip text of this setting.
105
+     * 
106
+     * @return This setting's tooltip text.
107
+     */    
68 108
     public String getTooltip() {
69 109
         return tooltip;
70 110
     }
71 111
 
112
+    /**
113
+     * Retrieves the type of this setting.
114
+     * 
115
+     * @return This setting's type.
116
+     */    
72 117
     public TYPE getType() {
73 118
         return type;
74 119
     }

+ 67
- 2
src/com/dmdirc/actions/ConditionTree.java Прегледај датотеку

@@ -33,18 +33,39 @@ import java.util.Deque;
33 33
  */
34 34
 public class ConditionTree {
35 35
 
36
+    /** The possible operations on a condition tree. */
36 37
     public static enum OPERATION {
37
-        AND, OR, VAR, NOT, NOOP
38
+        /** Only passes if both subtrees are true. */
39
+        AND,
40
+        /** Passes if either of the subtrees are true. */
41
+        OR,
42
+        /** Passes if the specified argument is true. */
43
+        VAR,
44
+        /** Only passes iof the left subtree fails to pass. */
45
+        NOT,
46
+        /** Doesn't do anything (an empty tree). */
47
+        NOOP
38 48
     }
39 49
        
50
+    /** The left subtree of this tree. */
40 51
     private ConditionTree leftArg = null;
41 52
 
53
+    /** The right subtree of this tree. */
42 54
     private ConditionTree rightArg = null;
43 55
 
56
+    /** The argument of this tree (only used for VAR ops). */
44 57
     private int argument = -1;
45 58
 
59
+    /** The operation that this tree performs. */
46 60
     private OPERATION op;
47 61
     
62
+    /**
63
+     * Creates a new ConditionTree for a binary operation.
64
+     * 
65
+     * @param op The binary operation to perform
66
+     * @param leftArg The left argument/subtree
67
+     * @param rightArg The right argument/subtree
68
+     */
48 69
     private ConditionTree(final OPERATION op, final ConditionTree leftArg,
49 70
             final ConditionTree rightArg) {
50 71
         assert(op != OPERATION.VAR);
@@ -57,6 +78,12 @@ public class ConditionTree {
57 78
         this.rightArg = rightArg;
58 79
     }
59 80
     
81
+    /**
82
+     * Creates a new ConditionTree for a unary operation.
83
+     * 
84
+     * @param op
85
+     * @param argument
86
+     */
60 87
     private ConditionTree(final OPERATION op, final ConditionTree argument) {
61 88
         assert(op == OPERATION.NOT);
62 89
         
@@ -64,11 +91,20 @@ public class ConditionTree {
64 91
         this.leftArg = argument;
65 92
     }    
66 93
     
94
+    /**
95
+     * Creates a new ConditionTree for a VAR operation with the specified
96
+     * argument number.
97
+     * 
98
+     * @param argument The number of the argument that's to be tested.
99
+     */
67 100
     private ConditionTree(final int argument) {
68 101
         this.op = OPERATION.VAR;
69 102
         this.argument = argument;
70 103
     }
71 104
     
105
+    /**
106
+     * Creates a new ConditionTree for a NOOP operation.
107
+     */
72 108
     private ConditionTree() {
73 109
         this.op = OPERATION.NOOP;
74 110
     }
@@ -143,7 +179,7 @@ public class ConditionTree {
143 179
      * Parses the specified string into a condition tree.
144 180
      * 
145 181
      * @param string The string to be parsed
146
-     * @return The corresponding condition tree, or null if there as an error
182
+     * @return The corresponding condition tree, or null if there was an error
147 183
      * while parsing the data
148 184
      */
149 185
     public static ConditionTree parseString(final String string) {
@@ -169,6 +205,14 @@ public class ConditionTree {
169 205
         return parseStack(stack);
170 206
     }
171 207
     
208
+    /**
209
+     * Parses the specified stack of elements, and returns a corresponding
210
+     * ConditionTree.
211
+     * 
212
+     * @param stack The stack to be read.
213
+     * @return The corresponding condition tree, or null if there was an error
214
+     * while parsing the data.
215
+     */
172 216
     @SuppressWarnings("fallthrough")
173 217
     private static ConditionTree parseStack(final Deque<Object> stack) {
174 218
         final Deque<Object> myStack = new ArrayDeque<Object>();
@@ -236,6 +280,13 @@ public class ConditionTree {
236 280
         return new ConditionTree();
237 281
     }
238 282
     
283
+    /**
284
+     * Reads and returns a single term from the specified stack.
285
+     * 
286
+     * @param stack The stack to be read
287
+     * @return The ConditionTree representing the last element on the stack,
288
+     * or null if it was not possible to create one.
289
+     */
239 290
     private static ConditionTree readTerm(final Deque<Object> stack) {
240 291
         final Object first = stack.pollFirst();
241 292
         
@@ -254,6 +305,14 @@ public class ConditionTree {
254 305
         }
255 306
     }
256 307
     
308
+    /**
309
+     * Pops elements off of the end of the specified stack until an opening
310
+     * bracket is reached, and then returns the parsed content of the bracket.
311
+     * 
312
+     * @param stack The stack to be read for the bracket
313
+     * @return The parsed contents of the bracket, or null if the brackets were
314
+     * mismatched.
315
+     */
257 316
     private static ConditionTree readBracket(final Deque<Object> stack) {
258 317
         final Deque<Object> tempStack = new ArrayDeque<Object>();
259 318
         boolean found = false;
@@ -275,6 +334,12 @@ public class ConditionTree {
275 334
         }
276 335
     }
277 336
     
337
+    /**
338
+     * Determines if the specified character represents a single digit.
339
+     * 
340
+     * @param target The character to be tested
341
+     * @return True if the character is a digit, false otherwise
342
+     */
278 343
     private static boolean isInt(final char target) {
279 344
         return target >= '0' && target <= '9';
280 345
     }

+ 2
- 0
src/com/dmdirc/actions/metatypes/ChannelEvents.java Прегледај датотеку

@@ -44,7 +44,9 @@ public enum ChannelEvents implements ActionMetaType {
44 44
     /** Channel event with source and victim. */
45 45
     CHANNEL_SOURCED_EVENT_WITH_VICTIM(new String[]{"channel", "user", "victim", "message"}, Channel.class, ChannelClientInfo.class, ChannelClientInfo.class, String.class);
46 46
     
47
+    /** The names of the arguments for this meta type. */
47 48
     private String[] argNames;
49
+    /** The classes of the arguments for this meta type. */
48 50
     private Class[] argTypes;
49 51
     
50 52
     /**

+ 2
- 0
src/com/dmdirc/actions/metatypes/ClientEvents.java Прегледај датотеку

@@ -47,7 +47,9 @@ public enum ClientEvents implements ActionMetaType {
47 47
     /** Unknown command event type. */
48 48
     UNKNOWN_COMMAND(new String[]{"source", "command", "arguments"}, FrameContainer.class, String.class, String[].class);
49 49
     
50
+    /** The names of the arguments for this meta type. */
50 51
     private String[] argNames;
52
+    /** The classes of the arguments for this meta type. */
51 53
     private Class[] argTypes;
52 54
     
53 55
     /**

+ 2
- 0
src/com/dmdirc/actions/metatypes/PluginEvents.java Прегледај датотеку

@@ -35,7 +35,9 @@ public enum PluginEvents implements ActionMetaType {
35 35
     /** Plugin event type. */
36 36
     PLUGIN_EVENT(new String[]{"plugin"}, PluginInfo.class);
37 37
     
38
+    /** The names of the arguments for this meta type. */
38 39
     private String[] argNames;
40
+    /** The classes of the arguments for this meta type. */
39 41
     private Class[] argTypes;
40 42
     
41 43
     /**

+ 2
- 0
src/com/dmdirc/actions/metatypes/QueryEvents.java Прегледај датотеку

@@ -37,7 +37,9 @@ public enum QueryEvents implements ActionMetaType {
37 37
     /** Query event with argument. */
38 38
     QUERY_EVENT_WITH_ARG(new String[]{"query", "message"}, Query.class, String.class);
39 39
     
40
+    /** The names of the arguments for this meta type. */
40 41
     private String[] argNames;
42
+    /** The classes of the arguments for this meta type. */
41 43
     private Class[] argTypes;
42 44
     
43 45
     /**

+ 2
- 0
src/com/dmdirc/actions/metatypes/ServerEvents.java Прегледај датотеку

@@ -52,7 +52,9 @@ public enum ServerEvents implements ActionMetaType {
52 52
     /** Server event type. */
53 53
     SERVER_EVENT(new String[]{"server"}, Server.class);
54 54
     
55
+    /** The names of the arguments for this meta type. */
55 56
     private String[] argNames;
57
+    /** The classes of the arguments for this meta type. */
56 58
     private Class[] argTypes;
57 59
     
58 60
     /**

+ 1
- 0
src/com/dmdirc/actions/wrappers/ActionWrapper.java Прегледај датотеку

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.actions.wrappers;
24 24
 
25 25
 import com.dmdirc.actions.Action;
26
+
26 27
 import java.util.ArrayList;
27 28
 import java.util.List;
28 29
 

+ 1
- 0
src/com/dmdirc/actions/wrappers/PerformWrapper.java Прегледај датотеку

@@ -42,6 +42,7 @@ import java.util.List;
42 42
  */
43 43
 public class PerformWrapper extends ActionWrapper {
44 44
     
45
+    /** A singleton instance of the Perform Wrapper. */
45 46
     private static PerformWrapper me = new PerformWrapper();
46 47
     
47 48
     /**

Loading…
Откажи
Сачувај