33919
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
2 |
<!--
|
|
3 |
Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
|
4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
5 |
|
|
6 |
This code is free software; you can redistribute it and/or modify it
|
|
7 |
under the terms of the GNU General Public License version 2 only, as
|
|
8 |
published by the Free Software Foundation.
|
|
9 |
|
|
10 |
This code is distributed in the hope that it will be useful, but WITHOUT
|
|
11 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
12 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
13 |
version 2 for more details (a copy is included in the LICENSE file that
|
|
14 |
accompanied this code).
|
|
15 |
|
|
16 |
You should have received a copy of the GNU General Public License version
|
|
17 |
2 along with this work; if not, write to the Free Software Foundation,
|
|
18 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
19 |
|
|
20 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
21 |
or visit www.oracle.com if you need additional information or have any
|
|
22 |
questions.
|
|
23 |
-->
|
|
24 |
<dataset package="sampleapi.simple">
|
|
25 |
|
|
26 |
<class basename="SampleClass" id="baseclass">
|
|
27 |
<modifier>public</modifier>
|
|
28 |
<modifier>none|abstract</modifier>
|
|
29 |
<member>
|
|
30 |
<field basename="field">
|
|
31 |
<modifier>none|public</modifier>
|
|
32 |
<modifier>none|static</modifier>
|
|
33 |
<modifier>none|final</modifier>
|
|
34 |
<type>boolean|int|String</type>
|
|
35 |
</field>
|
|
36 |
<field basename="field">
|
|
37 |
<modifier>protected|private</modifier>
|
|
38 |
<type>String</type>
|
|
39 |
</field>
|
|
40 |
<constructor>
|
|
41 |
<modifier>public</modifier>
|
|
42 |
<param>none|int|int,boolean|int,String</param>
|
|
43 |
</constructor>
|
|
44 |
<constructor>
|
|
45 |
<modifier>public</modifier>
|
|
46 |
<param>String</param>
|
|
47 |
<throw>NullPointerException</throw>
|
|
48 |
<throw>SampleException0</throw>
|
|
49 |
</constructor>
|
|
50 |
<method basename="set">
|
|
51 |
<modifier>public</modifier>
|
|
52 |
<type>void</type>
|
|
53 |
<param>int</param>
|
|
54 |
</method>
|
|
55 |
<method basename="get">
|
|
56 |
<modifier>public</modifier>
|
|
57 |
<type>int|boolean|String</type>
|
|
58 |
</method>
|
|
59 |
<method basename="doSomething">
|
|
60 |
<modifier>public</modifier>
|
|
61 |
<type>void|int</type>
|
|
62 |
<param>none|int|Object,int</param>
|
|
63 |
<throw>NullPointerException</throw>
|
|
64 |
<throw>ArithmeticException</throw>
|
|
65 |
</method>
|
|
66 |
</member>
|
|
67 |
</class>
|
|
68 |
|
|
69 |
<class basename="Derived">
|
|
70 |
<modifier>public</modifier>
|
|
71 |
<extend id="baseclass"/>
|
|
72 |
<member>
|
|
73 |
<field basename="myField">
|
|
74 |
<modifier>public</modifier>
|
|
75 |
<type>int|boolean</type>
|
|
76 |
</field>
|
|
77 |
<constructor>
|
|
78 |
<modifier>public</modifier>
|
|
79 |
<param>none|int|int,boolean|int,String</param>
|
|
80 |
</constructor>
|
|
81 |
<method basename="myGet">
|
|
82 |
<modifier>public</modifier>
|
|
83 |
<type>int|boolean</type>
|
|
84 |
</method>
|
|
85 |
</member>
|
|
86 |
</class>
|
|
87 |
|
|
88 |
<class basename="SampleSerial">
|
|
89 |
<import>java.io.Serializable</import>
|
|
90 |
<modifier>public</modifier>
|
|
91 |
<implement ref="Serializable"/>
|
|
92 |
<member>
|
|
93 |
<field basename="specialData">
|
|
94 |
<modifier>private|none|public</modifier>
|
|
95 |
<type>boolean|int|String</type>
|
|
96 |
</field>
|
|
97 |
</member>
|
|
98 |
</class>
|
|
99 |
|
|
100 |
<class basename="SampleSerial">
|
|
101 |
<import>java.io.Serializable</import>
|
|
102 |
<import>java.io.ObjectStreamField</import>
|
|
103 |
<modifier>public</modifier>
|
|
104 |
<implement ref="Serializable"/>
|
|
105 |
<member>
|
|
106 |
<serialfield basename="serialField">String,Long,Boolean</serialfield>
|
|
107 |
<method basename="justToBeHere">
|
|
108 |
<modifier>public</modifier>
|
|
109 |
<type>String|long|boolean</type>
|
|
110 |
</method>
|
|
111 |
</member>
|
|
112 |
</class>
|
|
113 |
|
|
114 |
<class basename="SampleSerial">
|
|
115 |
<import>java.io.Serializable</import>
|
|
116 |
<import>java.io.ObjectOutputStream</import>
|
|
117 |
<import>java.io.ObjectOutput</import>
|
|
118 |
<import>java.io.IOException</import>
|
|
119 |
<import>java.io.ObjectStreamException</import>
|
|
120 |
<modifier>public</modifier>
|
|
121 |
<implement ref="Serializable"/>
|
|
122 |
<member>
|
|
123 |
<method name="writeObject">
|
|
124 |
<modifier>private</modifier>
|
|
125 |
<param>ObjectOutputStream</param>
|
|
126 |
<type>void</type>
|
|
127 |
<throw>IOException</throw>
|
|
128 |
</method>
|
|
129 |
<method name="writeExternal">
|
|
130 |
<modifier>public</modifier>
|
|
131 |
<param>ObjectOutput</param>
|
|
132 |
<type>void</type>
|
|
133 |
<throw>IOException</throw>
|
|
134 |
</method>
|
|
135 |
<method name="writeReplace">
|
|
136 |
<modifier>protected</modifier>
|
|
137 |
<param>none</param>
|
|
138 |
<type>Object</type>
|
|
139 |
<throw>ObjectStreamException</throw>
|
|
140 |
</method>
|
|
141 |
<method name="writeSomethingElse">
|
|
142 |
<modifier>public</modifier>
|
|
143 |
<param>Object</param>
|
|
144 |
<type>void</type>
|
|
145 |
<throw>IOException</throw>
|
|
146 |
</method>
|
|
147 |
</member>
|
|
148 |
</class>
|
|
149 |
|
|
150 |
<class basename="SampleSerial">
|
|
151 |
<import>java.io.Serializable</import>
|
|
152 |
<import>java.io.ObjectInputStream</import>
|
|
153 |
<import>java.io.ObjectInput</import>
|
|
154 |
<import>java.io.IOException</import>
|
|
155 |
<import>java.io.ObjectStreamException</import>
|
|
156 |
<modifier>public</modifier>
|
|
157 |
<implement ref="Serializable"/>
|
|
158 |
<member>
|
|
159 |
<method name="readObject">
|
|
160 |
<modifier>private</modifier>
|
|
161 |
<param>ObjectInputStream</param>
|
|
162 |
<type>void</type>
|
|
163 |
<throw>IOException</throw>
|
|
164 |
<throw>ClassNotFoundException</throw>
|
|
165 |
</method>
|
|
166 |
<method name="readExternal">
|
|
167 |
<modifier>public</modifier>
|
|
168 |
<param>ObjectInput</param>
|
|
169 |
<type>void</type>
|
|
170 |
<throw>IOException</throw>
|
|
171 |
</method>
|
|
172 |
<method name="readResolve">
|
|
173 |
<modifier>protected</modifier>
|
|
174 |
<param>none</param>
|
|
175 |
<type>Object</type>
|
|
176 |
<throw>ObjectStreamException</throw>
|
|
177 |
</method>
|
|
178 |
<method name="readSomethingElse">
|
|
179 |
<modifier>public</modifier>
|
|
180 |
<param>Object</param>
|
|
181 |
<type>void</type>
|
|
182 |
<throw>IOException</throw>
|
|
183 |
</method>
|
|
184 |
</member>
|
|
185 |
</class>
|
|
186 |
|
|
187 |
<class basename="Container">
|
|
188 |
<modifier>public</modifier>
|
|
189 |
<member>
|
|
190 |
<class basename="Inner">
|
|
191 |
<modifier>public</modifier>
|
|
192 |
<member>
|
|
193 |
<field basename="value">
|
|
194 |
<modifier>public</modifier>
|
|
195 |
<type>int</type>
|
|
196 |
</field>
|
|
197 |
</member>
|
|
198 |
</class>
|
|
199 |
<class basename="Nested">
|
|
200 |
<modifier>public</modifier>
|
|
201 |
<modifier>static</modifier>
|
|
202 |
</class>
|
|
203 |
<interface basename="EventListener">
|
|
204 |
<modifier>public</modifier>
|
|
205 |
<modifier>static</modifier>
|
|
206 |
<member>
|
|
207 |
<method basename="onEvent">
|
|
208 |
<modifier>public</modifier>
|
|
209 |
<type>void</type>
|
|
210 |
</method>
|
|
211 |
</member>
|
|
212 |
</interface>
|
|
213 |
</member>
|
|
214 |
</class>
|
|
215 |
|
|
216 |
<!-- Errors and exceptions -->
|
|
217 |
<class basename="SampleError">
|
|
218 |
<modifier>public</modifier>
|
|
219 |
<extend ref="java.lang.Error"/>
|
|
220 |
<member>
|
|
221 |
<field basename="errorInfo">
|
|
222 |
<modifier>private</modifier>
|
|
223 |
<type>boolean|int|String</type>
|
|
224 |
</field>
|
|
225 |
<constructor>
|
|
226 |
<modifier>public</modifier>
|
|
227 |
<param>String</param>
|
|
228 |
</constructor>
|
|
229 |
<method basename="getSampleData">
|
|
230 |
<modifier>public</modifier>
|
|
231 |
<type>int|String</type>
|
|
232 |
</method>
|
|
233 |
</member>
|
|
234 |
</class>
|
|
235 |
|
|
236 |
<class basename="SampleException">
|
|
237 |
<modifier>public</modifier>
|
|
238 |
<extend ref="java.lang.Exception"/>
|
|
239 |
<member>
|
|
240 |
<field basename="exceptionInfo">
|
|
241 |
<modifier>private</modifier>
|
|
242 |
<type>boolean|int|String</type>
|
|
243 |
</field>
|
|
244 |
<constructor>
|
|
245 |
<modifier>public</modifier>
|
|
246 |
<param>String</param>
|
|
247 |
</constructor>
|
|
248 |
<method basename="getSampleData">
|
|
249 |
<modifier>public</modifier>
|
|
250 |
<type>int|String</type>
|
|
251 |
</method>
|
|
252 |
</member>
|
|
253 |
</class>
|
|
254 |
|
|
255 |
<interface basename="SampleInterface" id="baseinterface">
|
|
256 |
<modifier>public|none</modifier>
|
|
257 |
<member>
|
|
258 |
<method basename="method">
|
|
259 |
<modifier>public</modifier>
|
|
260 |
<type>void|int|Object</type>
|
|
261 |
</method>
|
|
262 |
</member>
|
|
263 |
</interface>
|
|
264 |
|
|
265 |
<class basename="Implementor">
|
|
266 |
<modifier>public</modifier>
|
|
267 |
<implement id="baseinterface"/>
|
|
268 |
<member>
|
|
269 |
<field basename="myField">
|
|
270 |
<modifier>public</modifier>
|
|
271 |
<type>int|boolean</type>
|
|
272 |
</field>
|
|
273 |
<method basename="myGet">
|
|
274 |
<modifier>public</modifier>
|
|
275 |
<type>int|boolean</type>
|
|
276 |
</method>
|
|
277 |
</member>
|
|
278 |
</class>
|
|
279 |
|
|
280 |
<class basename="GenericClass" tparam="T">
|
|
281 |
<import>java.util.List</import>
|
|
282 |
<modifier>public</modifier>
|
|
283 |
<member>
|
|
284 |
<method basename="put">
|
|
285 |
<modifier>public</modifier>
|
|
286 |
<type>void</type>
|
|
287 |
<param>T</param>
|
|
288 |
</method>
|
|
289 |
<method basename="get">
|
|
290 |
<modifier>public</modifier>
|
|
291 |
<type>T</type>
|
|
292 |
<param>int</param>
|
|
293 |
</method>
|
|
294 |
<method basename="get">
|
|
295 |
<modifier>public</modifier>
|
|
296 |
<type>List<T></type>
|
|
297 |
</method>
|
|
298 |
</member>
|
|
299 |
</class>
|
|
300 |
|
|
301 |
<class basename="GenericClass" tparam="K,V">
|
|
302 |
<import>java.util.Set</import>
|
|
303 |
<import>java.util.List</import>
|
|
304 |
<import>java.util.Map</import>
|
|
305 |
<modifier>public</modifier>
|
|
306 |
<member>
|
|
307 |
<method basename="put">
|
|
308 |
<modifier>public</modifier>
|
|
309 |
<type>void</type>
|
|
310 |
<param>K,V</param>
|
|
311 |
</method>
|
|
312 |
<method basename="putMap">
|
|
313 |
<modifier>public</modifier>
|
|
314 |
<type>void</type>
|
|
315 |
<param>Map<K,V></param>
|
|
316 |
</method>
|
|
317 |
<method basename="get">
|
|
318 |
<modifier>public</modifier>
|
|
319 |
<type>V</type>
|
|
320 |
<param>K</param>
|
|
321 |
</method>
|
|
322 |
<method basename="getV">
|
|
323 |
<modifier>public</modifier>
|
|
324 |
<type>Set<V>|List<V></type>
|
|
325 |
</method>
|
|
326 |
<method basename="getK">
|
|
327 |
<modifier>public</modifier>
|
|
328 |
<type>Set<K>|List<K></type>
|
|
329 |
</method>
|
|
330 |
</member>
|
|
331 |
</class>
|
|
332 |
|
|
333 |
<class basename="GenericClass" tparam="M,N,O">
|
|
334 |
<import>java.util.Set</import>
|
|
335 |
<import>java.util.List</import>
|
|
336 |
<import>java.util.Map</import>
|
|
337 |
<modifier>public</modifier>
|
|
338 |
<member>
|
|
339 |
<method basename="get">
|
|
340 |
<modifier>public</modifier>
|
|
341 |
<type>Set<M>|List<M></type>
|
|
342 |
<param>Map<N,O></param>
|
|
343 |
</method>
|
|
344 |
<method basename="get">
|
|
345 |
<modifier>public</modifier>
|
|
346 |
<type>Set<N>|List<N></type>
|
|
347 |
<param>Map<M,O></param>
|
|
348 |
</method>
|
|
349 |
<method basename="get">
|
|
350 |
<modifier>public</modifier>
|
|
351 |
<type>Set<O>|List<O></type>
|
|
352 |
<param>Map<M,N></param>
|
|
353 |
</method>
|
|
354 |
</member>
|
|
355 |
</class>
|
|
356 |
|
|
357 |
<class basename="GenericUtil"> <!-- public static generic methods like Collections -->
|
|
358 |
<import>java.util.Set</import>
|
|
359 |
<import>java.util.List</import>
|
|
360 |
<import>java.util.Map</import>
|
|
361 |
<import>java.util.function.Supplier</import>
|
|
362 |
<modifier>public</modifier>
|
|
363 |
<member>
|
|
364 |
<method tparam="E" basename="getSomething">
|
|
365 |
<modifier>public</modifier>
|
|
366 |
<modifier>static</modifier>
|
|
367 |
<type>Set<? extends E>|List<? extends E></type>
|
|
368 |
</method>
|
|
369 |
<method tparam="V,K" basename="getMore">
|
|
370 |
<modifier>public|private</modifier>
|
|
371 |
<modifier>static</modifier>
|
|
372 |
<type>Map<V,K></type>
|
|
373 |
</method>
|
|
374 |
<method tparam="E" basename="doSomething">
|
|
375 |
<modifier>public</modifier>
|
|
376 |
<modifier>static</modifier>
|
|
377 |
<type>void</type>
|
|
378 |
<param>E</param>
|
|
379 |
</method>
|
|
380 |
<method tparam="X extends Throwable" basename="orElseThrow">
|
|
381 |
<modifier>public|private</modifier>
|
|
382 |
<modifier>static</modifier>
|
|
383 |
<type>X</type>
|
|
384 |
<param>Supplier<? extends X></param>
|
|
385 |
<throw>X</throw>
|
|
386 |
</method>
|
|
387 |
</member>
|
|
388 |
</class>
|
|
389 |
|
|
390 |
<enum basename="SampleEnum">
|
|
391 |
<modifier>public</modifier>
|
|
392 |
<member>
|
|
393 |
<constant basename="VALUE" count="3"/>
|
|
394 |
</member>
|
|
395 |
</enum>
|
|
396 |
|
|
397 |
<enum basename="SampleEnum">
|
|
398 |
<modifier>public</modifier>
|
|
399 |
<member>
|
|
400 |
<constant basename="VALUE" count="2"/>
|
|
401 |
<constant basename="NOVALUE" count="1"/>
|
|
402 |
<field basename="field">
|
|
403 |
<modifier>private</modifier>
|
|
404 |
<type>int|String</type>
|
|
405 |
</field>
|
|
406 |
<method basename="method">
|
|
407 |
<modifier>public</modifier>
|
|
408 |
<type>void|String</type>
|
|
409 |
</method>
|
|
410 |
</member>
|
|
411 |
</enum>
|
|
412 |
|
|
413 |
<annodecl id="documented">
|
|
414 |
<class>Documented</class>
|
|
415 |
</annodecl>
|
|
416 |
|
|
417 |
<annodecl id="reten-source">
|
|
418 |
<class>Retention</class>
|
|
419 |
<arg name="value" value="RetentionPolicy.SOURCE"/>
|
|
420 |
</annodecl>
|
|
421 |
|
|
422 |
<annodecl id="reten-class">
|
|
423 |
<class>Retention</class>
|
|
424 |
<arg name="value" value="RetentionPolicy.CLASS"/>
|
|
425 |
</annodecl>
|
|
426 |
|
|
427 |
<annodecl id="reten-runtime">
|
|
428 |
<class>Retention</class>
|
|
429 |
<arg name="value" value="RetentionPolicy.RUNTIME"/>
|
|
430 |
</annodecl>
|
|
431 |
|
|
432 |
<annodecl id="target-method">
|
|
433 |
<class>Target</class>
|
|
434 |
<arg value="ElementType.METHOD"/>
|
|
435 |
</annodecl>
|
|
436 |
|
|
437 |
<annodecl id="target-field">
|
|
438 |
<class>Target</class>
|
|
439 |
<arg value="ElementType.FIELD"/>
|
|
440 |
</annodecl>
|
|
441 |
|
|
442 |
<annodecl id="target-type">
|
|
443 |
<class>Target</class>
|
|
444 |
<arg value="{ElementType.TYPE, ElementType.TYPE_USE}"/>
|
|
445 |
</annodecl>
|
|
446 |
|
|
447 |
<annotation basename="AnnotatedAnno">
|
|
448 |
<import>java.lang.annotation.Documented</import>
|
|
449 |
<anno>@documented</anno>
|
|
450 |
<modifier>public</modifier>
|
|
451 |
<member>
|
|
452 |
<method basename="value">
|
|
453 |
<modifier>public</modifier>
|
|
454 |
<type>boolean|String</type>
|
|
455 |
</method>
|
|
456 |
</member>
|
|
457 |
</annotation>
|
|
458 |
|
|
459 |
<annotation basename="AnnotatedAnno">
|
|
460 |
<import>java.lang.annotation.Retention</import>
|
|
461 |
<import>java.lang.annotation.RetentionPolicy</import>
|
|
462 |
<anno>@reten-source|@reten-class|@reten-runtime</anno>
|
|
463 |
<modifier>public</modifier>
|
|
464 |
<member>
|
|
465 |
<method basename="value">
|
|
466 |
<modifier>public</modifier>
|
|
467 |
<type>int</type>
|
|
468 |
</method>
|
|
469 |
</member>
|
|
470 |
</annotation>
|
|
471 |
|
|
472 |
<class basename="AnnoContainer">
|
|
473 |
<import>java.lang.annotation.Retention</import>
|
|
474 |
<import>java.lang.annotation.RetentionPolicy</import>
|
|
475 |
<import>java.lang.annotation.Target</import>
|
|
476 |
<import>java.lang.annotation.ElementType</import>
|
|
477 |
<modifier>public</modifier>
|
|
478 |
<member>
|
|
479 |
<annotation basename="AnnotatedAnno">
|
|
480 |
<anno>@reten-source|@reten-class|@reten-runtime</anno>
|
|
481 |
<anno>@target-method|@target-field|@target-type</anno>
|
|
482 |
<modifier>public</modifier>
|
|
483 |
<modifier>static</modifier>
|
|
484 |
<member>
|
|
485 |
<method basename="value">
|
|
486 |
<modifier>public</modifier>
|
|
487 |
<type>String</type>
|
|
488 |
</method>
|
|
489 |
</member>
|
|
490 |
</annotation>
|
|
491 |
</member>
|
|
492 |
</class>
|
|
493 |
|
|
494 |
<annodecl id="deprecated">
|
|
495 |
<class>Deprecated</class>
|
|
496 |
</annodecl>
|
|
497 |
|
|
498 |
<annodecl id="safevarargs">
|
|
499 |
<class>SafeVarargs</class>
|
|
500 |
</annodecl>
|
|
501 |
|
|
502 |
<annodecl id="suppresswarnings">
|
|
503 |
<class>SuppressWarnings</class>
|
|
504 |
<arg value="{"unchecked", "rawtypes"}"/>
|
|
505 |
</annodecl>
|
|
506 |
|
|
507 |
<class basename="AnnotatedClass">
|
|
508 |
<modifier>public</modifier>
|
|
509 |
<member>
|
|
510 |
<method basename="deprecatedMethod">
|
|
511 |
<anno>@deprecated</anno>
|
|
512 |
<modifier>public</modifier>
|
|
513 |
<type>void</type>
|
|
514 |
</method>
|
|
515 |
<method basename="safeVarargsMethod">
|
|
516 |
<anno>@safevarargs</anno>
|
|
517 |
<modifier>public</modifier>
|
|
518 |
<type>void|int</type>
|
|
519 |
<param>String...</param>
|
|
520 |
</method>
|
|
521 |
<method basename="suppressWarningsMethod">
|
|
522 |
<anno>@suppresswarnings</anno>
|
|
523 |
<modifier>public</modifier>
|
|
524 |
<type>void</type>
|
|
525 |
<param>int|Object</param>
|
|
526 |
</method>
|
|
527 |
</member>
|
|
528 |
</class>
|
|
529 |
</dataset>
|