Path: blob/master/test/langtools/jdk/javadoc/tool/sampleapi/res/transitive.xml
40984 views
<?xml version="1.0" encoding="utf-8"?>1<!--2Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.3DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.45This code is free software; you can redistribute it and/or modify it6under the terms of the GNU General Public License version 2 only, as7published by the Free Software Foundation.89This code is distributed in the hope that it will be useful, but WITHOUT10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12version 2 for more details (a copy is included in the LICENSE file that13accompanied this code).1415You should have received a copy of the GNU General Public License version162 along with this work; if not, write to the Free Software Foundation,17Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.1819Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20or visit www.oracle.com if you need additional information or have any21questions.22-->23<sampleapi>24<module name="my.first.module" id="first">25<exports package="$exported"/>26<exports package="$exported.to">27<to module="$second"/>28</exports>29<opens package="$internal">30<to module="$second"/>31</opens>32<uses service="$service"/>33<package name="sampleapi.exported" id="exported">34<class basename="API" id="service">35<modifier>public</modifier>36<member>37<method basename="get">38<modifier>public</modifier>39<type>Object</type>40</method>41</member>42</class>43</package>44<package name="sampleapi.exported.to" id="exported.to">45<class basename="API" id="baseclass">46<modifier>public</modifier>47<member>48<method basename="put">49<param>Object</param>50<type>void</type>51</method>52</member>53</class>54</package>55<package name="sampleapi.not.exported" id="internal">56<class basename="AnImplementationDetail"/>57</package>58</module>59<module name="my.second.module" id="second" kind="open">60<requires module="$first" transitive="true"/>61<requires module="java.xml" static="true"/>62<provides service="$service">63<implementation class="$second.impl"/>64<implementation class="$third.impl"/>65</provides>66<package name="sampleapi.exported.second">67<class basename="API" id="second.impl">68<extend id="baseclass"/>69</class>70<class basename="OtherAPI" id="third.impl">71<extend id="baseclass"/>72</class>73<class basename="TClass">74<modifier>public</modifier>75<modifier>none|abstract</modifier>76<implement>SInterface0</implement>77<member>78<field basename="id">79<modifier>public</modifier>80<type>int</type>81</field>82<method basename="get">83<modifier>public</modifier>84<type>int</type>85<throw>SException0</throw>86</method>87<method basename="put">88<modifier>public</modifier>89<param>int</param>90<type>void</type>91<throw>SException0</throw>92</method>93</member>94</class>95</package>96</module>97</sampleapi>9899100