1 /* |
|
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 * |
|
5 * This code is free software; you can redistribute it and/or modify it |
|
6 * under the terms of the GNU General Public License version 2 only, as |
|
7 * published by the Free Software Foundation. |
|
8 * |
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
|
13 * accompanied this code). |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License version |
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 * |
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 * or visit www.oracle.com if you need additional information or have any |
|
21 * questions. |
|
22 */ |
|
23 |
|
24 package pkg5; |
|
25 |
|
26 public class Classes { |
|
27 |
|
28 public static class GP { |
|
29 /** m0 in grand parent */ |
|
30 public void m0() {} |
|
31 |
|
32 /** m7 in grand parent */ |
|
33 public void m7() {} |
|
34 } |
|
35 |
|
36 public static class P<K, V> extends GP { |
|
37 |
|
38 /** A nested class in parent */ |
|
39 public class PN<K, V>{} |
|
40 |
|
41 /** A property in parent */ |
|
42 private DoubleProperty rate; |
|
43 public final void setRate(double l){} |
|
44 public final double getRate(){return 1;} |
|
45 public DoubleProperty rateProperty() {return null;} |
|
46 |
|
47 /** A ctor in parent */ |
|
48 public P() {} |
|
49 |
|
50 /** |
|
51 * A ctor in parent. |
|
52 * @param s string |
|
53 */ |
|
54 public P(String s) {} |
|
55 |
|
56 /** field0 in parent */ |
|
57 public int field0; |
|
58 |
|
59 /** field1 in parent */ |
|
60 public int field1; |
|
61 |
|
62 |
|
63 // m0 in parent |
|
64 public void m0() {} |
|
65 |
|
66 /** m1 in parent */ |
|
67 public void m1() {} |
|
68 |
|
69 /** m2 in parent */ |
|
70 public void m2() {} |
|
71 |
|
72 /** m3 in parent */ |
|
73 public void m3() {} |
|
74 |
|
75 /** m4 in parent |
|
76 @param k a key |
|
77 @param v a value |
|
78 */ |
|
79 public void m4(K k, V v) {} |
|
80 |
|
81 // No comment |
|
82 public void m5() {} |
|
83 |
|
84 // No comment |
|
85 public void m6() {} |
|
86 |
|
87 /** {@inheritDoc} */ |
|
88 public void m7() {} |
|
89 |
|
90 } |
|
91 |
|
92 public static class C extends P { |
|
93 |
|
94 public C(String s) {} |
|
95 |
|
96 public int field1; |
|
97 |
|
98 /** A modified method */ |
|
99 public void m1() {} |
|
100 |
|
101 /** {@inheritDoc} */ |
|
102 public void m2() {} |
|
103 |
|
104 // No comment method |
|
105 public void m3() {} |
|
106 |
|
107 public void m4(String k, String v) {} |
|
108 |
|
109 // Do something else than the parent |
|
110 public void m5() {} |
|
111 |
|
112 /** A test of links to the methods in this class. <p> |
|
113 * {@link m0}, |
|
114 * {@link m1}, |
|
115 * {@link m2}, |
|
116 * {@link m3}, |
|
117 * {@link m4}, |
|
118 * {@link m5}, |
|
119 * {@link m6}, |
|
120 * {@link m7}, |
|
121 * End of links |
|
122 * |
|
123 * @see #m0() |
|
124 * @see #m1() |
|
125 * @see #m2() |
|
126 * @see #m3() |
|
127 * @see #m4(String k, String v) |
|
128 * @see #m5() |
|
129 * @see #m6() |
|
130 * @see #m7() |
|
131 */ |
|
132 public void m6() {} |
|
133 |
|
134 /** m7 in Child. */ |
|
135 public void m7() {} |
|
136 } |
|
137 |
|
138 /** Tickle this {@link TestEnum#doSomething()} */ |
|
139 public class DoubleProperty {} |
|
140 } |
|