Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/langtools/jdk/javadoc/tool/sampleapi/res/transitive.xml
40984 views
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
Copyright (c) 2016, 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
<sampleapi>
25
<module name="my.first.module" id="first">
26
<exports package="$exported"/>
27
<exports package="$exported.to">
28
<to module="$second"/>
29
</exports>
30
<opens package="$internal">
31
<to module="$second"/>
32
</opens>
33
<uses service="$service"/>
34
<package name="sampleapi.exported" id="exported">
35
<class basename="API" id="service">
36
<modifier>public</modifier>
37
<member>
38
<method basename="get">
39
<modifier>public</modifier>
40
<type>Object</type>
41
</method>
42
</member>
43
</class>
44
</package>
45
<package name="sampleapi.exported.to" id="exported.to">
46
<class basename="API" id="baseclass">
47
<modifier>public</modifier>
48
<member>
49
<method basename="put">
50
<param>Object</param>
51
<type>void</type>
52
</method>
53
</member>
54
</class>
55
</package>
56
<package name="sampleapi.not.exported" id="internal">
57
<class basename="AnImplementationDetail"/>
58
</package>
59
</module>
60
<module name="my.second.module" id="second" kind="open">
61
<requires module="$first" transitive="true"/>
62
<requires module="java.xml" static="true"/>
63
<provides service="$service">
64
<implementation class="$second.impl"/>
65
<implementation class="$third.impl"/>
66
</provides>
67
<package name="sampleapi.exported.second">
68
<class basename="API" id="second.impl">
69
<extend id="baseclass"/>
70
</class>
71
<class basename="OtherAPI" id="third.impl">
72
<extend id="baseclass"/>
73
</class>
74
<class basename="TClass">
75
<modifier>public</modifier>
76
<modifier>none|abstract</modifier>
77
<implement>SInterface0</implement>
78
<member>
79
<field basename="id">
80
<modifier>public</modifier>
81
<type>int</type>
82
</field>
83
<method basename="get">
84
<modifier>public</modifier>
85
<type>int</type>
86
<throw>SException0</throw>
87
</method>
88
<method basename="put">
89
<modifier>public</modifier>
90
<param>int</param>
91
<type>void</type>
92
<throw>SException0</throw>
93
</method>
94
</member>
95
</class>
96
</package>
97
</module>
98
</sampleapi>
99
100