author | sherman |
Wed, 29 Nov 2017 15:01:16 -0800 | |
changeset 47987 | 85ea7e83af30 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
36511 | 1 |
/* |
44359
c6761862ca0b
8174823: Module system implementation refresh (3/2017)
alanb
parents:
42770
diff
changeset
|
2 |
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
36511 | 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. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package jdk.internal.module; |
|
27 |
||
28 |
import java.lang.module.ModuleDescriptor; |
|
45652
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
29 |
import java.util.Map; |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
30 |
import java.util.Set; |
36511 | 31 |
|
44359
c6761862ca0b
8174823: Module system implementation refresh (3/2017)
alanb
parents:
42770
diff
changeset
|
32 |
/** |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
33 |
* A SystemModules object reconstitutes module descriptors and other modules |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
34 |
* attributes in an efficient way to avoid parsing module-info.class files at |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
35 |
* startup. Implementations of this class are generated by the "system modules" |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
36 |
* jlink plugin. |
36511 | 37 |
* |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
38 |
* @see SystemModuleFinders |
42703
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
39 |
* @see jdk.tools.jlink.internal.plugins.SystemModulesPlugin |
36511 | 40 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
41 |
|
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
42 |
interface SystemModules { |
36511 | 43 |
|
44 |
/** |
|
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
45 |
* Returns false if the module reconstituted by this SystemModules object |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
46 |
* have no overlapping packages. Returns true if there are overlapping |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
47 |
* packages or unknown. |
36511 | 48 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
49 |
boolean hasSplitPackages(); |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
50 |
|
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
51 |
/** |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
52 |
* Return false if the modules reconstituted by this SystemModules object |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
53 |
* do not include any incubator modules. Returns true if there are |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
54 |
* incubating modules or unknown. |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
55 |
*/ |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
56 |
boolean hasIncubatorModules(); |
36511 | 57 |
|
58 |
/** |
|
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
59 |
* Returns the non-empty array of ModuleDescriptor objects. |
42770
d363e7c3584a
8171400: Move checking of duplicate packages in the boot layer to link time
redestad
parents:
42703
diff
changeset
|
60 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
61 |
ModuleDescriptor[] moduleDescriptors(); |
42770
d363e7c3584a
8171400: Move checking of duplicate packages in the boot layer to link time
redestad
parents:
42703
diff
changeset
|
62 |
|
d363e7c3584a
8171400: Move checking of duplicate packages in the boot layer to link time
redestad
parents:
42703
diff
changeset
|
63 |
/** |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
64 |
* Returns the array of ModuleTarget objects. The array elements correspond |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
65 |
* to the array of ModuleDescriptor objects. |
36511 | 66 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
67 |
ModuleTarget[] moduleTargets(); |
37779
7c84df693837
8154956: Module system implementation refresh (4/2016)
alanb
parents:
36511
diff
changeset
|
68 |
|
42703
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
69 |
/** |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
70 |
* Returns the array of ModuleHashes objects. The array elements correspond |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
71 |
* to the array of ModuleDescriptor objects. |
44359
c6761862ca0b
8174823: Module system implementation refresh (3/2017)
alanb
parents:
42770
diff
changeset
|
72 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
73 |
ModuleHashes[] moduleHashes(); |
44359
c6761862ca0b
8174823: Module system implementation refresh (3/2017)
alanb
parents:
42770
diff
changeset
|
74 |
|
c6761862ca0b
8174823: Module system implementation refresh (3/2017)
alanb
parents:
42770
diff
changeset
|
75 |
/** |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
76 |
* Returns the array of ModuleResolution objects. The array elements correspond |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
77 |
* to the array of ModuleDescriptor objects. |
42703
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
78 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
79 |
ModuleResolution[] moduleResolutions(); |
42703
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
80 |
|
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
81 |
/** |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
82 |
* Returns the map representing readability graph for the modules reconstituted |
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
83 |
* by this SystemModules object. |
42703
20c39ea4a507
8170987: Module system implementation refresh (12/2016)
alanb
parents:
42338
diff
changeset
|
84 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
85 |
Map<String, Set<String>> moduleReads(); |
45652
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
86 |
|
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
87 |
/** |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
88 |
* Returns the map of module concealed packages to open. The map key is the |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
89 |
* module name, the value is the set of concealed packages to open. |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
90 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
91 |
Map<String, Set<String>> concealedPackagesToOpen(); |
45652
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
92 |
|
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
93 |
/** |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
94 |
* Returns the map of module exported packages to open. The map key is the |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
95 |
* module name, the value is the set of exported packages to open. |
33342314ce89
8181087: Module system implementation refresh (6/2017)
alanb
parents:
44359
diff
changeset
|
96 |
*/ |
46096
62c77b334012
8185853: Generate readability graph at link time and other startup improvements
alanb
parents:
45652
diff
changeset
|
97 |
Map<String, Set<String>> exportedPackagesToOpen(); |
37779
7c84df693837
8154956: Module system implementation refresh (4/2016)
alanb
parents:
36511
diff
changeset
|
98 |
} |