KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infozone > tools > janalyzer > MassiveComments


1 // 1 sample java file for testing comment settings in jAnalyzer
2
package org.infozone.tools.janalyzer;
3 // 2
4
import koala.dynamicjava.tree.*;
5 // 3
6
public final class MassiveComments {
7     // 4
8
public JavaCodeOutput() {
9               // 5
10
method();
11                // 6
12
method();
13                // 7
14
}
15     // 8
16
public final Object JavaDoc method(Parameter one) {
17         // 9
18
try {
19             // 10
20
if (cond) {
21                 // 11
22
method6();
23                 // 12
24
method6b();
25                 // 13
26
}
27             // 14
28
else if (cond2) {
29                 // 15
30
method();
31                 // 16
32
}
33             // 17
34
else {
35                 // 18
36
method();
37                 // 19
38
}
39         // 20
40
}
41         // 21
42
catch(exception e) {
43                 // 22
44
method();
45                 // 23
46
method();
47                 // 24
48

49         }
50         // 25
51
finally {
52                 // 26
53
method();
54                 // 27
55
method();
56                 // 28
57
}
58         // 29
59
switch (cond) {
60             // 30
61
case A:
62                 // 31
63
method();
64                 // 32
65
method();
66                 // 33
67
default:
68                 // 34
69
method();
70                 // 35
71
method();
72                 // 36
73
}
74         // 37
75
while (cond) {
76                 // 38
77
method();
78                 // 39
79
method();
80                 // 40
81

82         }
83         // 41
84
do {
85             // 42
86
method();
87                 // 43
88
method();
89                 // 44
90

91     }while(cond);
92      // 45 left, 46
93
for (;;) {
94                             // 47
95
method();
96                 // 48
97
method();
98                 // 49
99

100         }
101         // 50
102
addActionListener(new ActionListener() {
103             // 51
104
public void actionPerformed(ActionEvent e) {
105                 // 52
106
method();
107                 // 53
108
}
109         // 54
110
});
111         // 55
112
}
113     // 56
114
}
115 // 57
116
Popular Tags