author | lbourges |
Wed, 04 Apr 2018 21:36:02 +0200 | |
changeset 49689 | a38e7ef21cc0 |
parent 48721 | ef3557eb4306 |
child 54950 | 46ae54c3026d |
permissions | -rw-r--r-- |
36526 | 1 |
/* |
48721
ef3557eb4306
8196403: remove the remaining use of string keys for errors and warnings in the compiler
vromero
parents:
48323
diff
changeset
|
2 |
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. |
36526 | 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 |
||
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
26 |
/** |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
27 |
* Defines the implementation of the |
45796 | 28 |
* {@linkplain javax.tools.ToolProvider#getSystemJavaCompiler system Java compiler} |
48323 | 29 |
* and its command line equivalent, <em>{@index javac javac tool}</em>. |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
30 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
31 |
* <h2 style="font-family:'DejaVu Sans Mono', monospace; font-style:italic">javac</h2> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
32 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
33 |
* <p> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
34 |
* This module provides the equivalent of command-line access to <em>javac</em> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
35 |
* via the {@link java.util.spi.ToolProvider ToolProvider} and |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
36 |
* {@link javax.tools.Tool} service provider interfaces (SPIs), |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
37 |
* and more flexible access via the {@link javax.tools.JavaCompiler JavaCompiler} |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
38 |
* SPI.</p> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
39 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
40 |
* <p> Instances of the tools can be obtained by calling |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
41 |
* {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst} |
45796 | 42 |
* or the {@linkplain java.util.ServiceLoader service loader} with the name |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
43 |
* {@code "javac"}. |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
44 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
45 |
* <p> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
46 |
* In addition, instances of {@link javax.tools.JavaCompiler.CompilationTask} |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
47 |
* obtained from {@linkplain javax.tools.JavaCompiler JavaCompiler} can be |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
48 |
* downcast to {@link com.sun.source.util.JavacTask JavacTask} for access to |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
49 |
* lower level aspects of <em>javac</em>, such as the |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
50 |
* {@link com.sun.source.tree Abstract Syntax Tree} (AST).</p> |
43862
a9b0f76e15bf
8174695: Fix @since in module-info.java in dev/langtools repo
mli
parents:
42498
diff
changeset
|
51 |
* |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
52 |
* <p>This module uses the {@link java.nio.file.spi.FileSystemProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
53 |
* FileSystemProvider} API to locate file system providers. In particular, |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
54 |
* this means that a jar file system provider, such as that in the |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
55 |
* {@code jdk.zipfs} module, must be available if the compiler is to be able |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
56 |
* to read JAR files. |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
57 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
58 |
* <dl style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif"> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
59 |
* <dt class="simpleTagLabel">Tool Guides: |
48323 | 60 |
* <dd>{@extLink javac_tool_reference javac} |
45680
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
61 |
* </dl> |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
62 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
63 |
* @provides java.util.spi.ToolProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
64 |
* @provides com.sun.tools.javac.platform.PlatformProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
65 |
* @provides javax.tools.JavaCompiler |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
66 |
* @provides javax.tools.Tool |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
67 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
68 |
* @uses javax.annotation.processing.Processor |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
69 |
* @uses com.sun.source.util.Plugin |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
70 |
* @uses com.sun.tools.javac.platform.PlatformProvider |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
71 |
* |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
72 |
* @moduleGraph |
6a7b5298fcf5
8181825: Add tool and services information to module summary
jjg
parents:
44452
diff
changeset
|
73 |
* @since 9 |
40507
4413083331c7
8162576: Missing doclint check missing for modules
sadayapalam
parents:
36991
diff
changeset
|
74 |
*/ |
36526 | 75 |
module jdk.compiler { |
42407
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41865
diff
changeset
|
76 |
requires transitive java.compiler; |
36526 | 77 |
|
78 |
exports com.sun.source.doctree; |
|
79 |
exports com.sun.source.tree; |
|
80 |
exports com.sun.source.util; |
|
81 |
exports com.sun.tools.javac; |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
82 |
|
36526 | 83 |
exports com.sun.tools.doclint to |
84 |
jdk.javadoc; |
|
85 |
exports com.sun.tools.javac.api to |
|
86 |
jdk.javadoc, |
|
87 |
jdk.jshell; |
|
48721
ef3557eb4306
8196403: remove the remaining use of string keys for errors and warnings in the compiler
vromero
parents:
48323
diff
changeset
|
88 |
exports com.sun.tools.javac.resources to |
ef3557eb4306
8196403: remove the remaining use of string keys for errors and warnings in the compiler
vromero
parents:
48323
diff
changeset
|
89 |
jdk.jshell; |
36526 | 90 |
exports com.sun.tools.javac.code to |
91 |
jdk.javadoc, |
|
92 |
jdk.jshell; |
|
93 |
exports com.sun.tools.javac.comp to |
|
94 |
jdk.javadoc, |
|
95 |
jdk.jshell; |
|
96 |
exports com.sun.tools.javac.file to |
|
97 |
jdk.jdeps, |
|
98 |
jdk.javadoc; |
|
99 |
exports com.sun.tools.javac.jvm to |
|
100 |
jdk.javadoc; |
|
101 |
exports com.sun.tools.javac.main to |
|
47268
48ec75306997
8177466: Add compiler support for local variable type-inference
mcimadamore
parents:
47216
diff
changeset
|
102 |
jdk.javadoc, |
48ec75306997
8177466: Add compiler support for local variable type-inference
mcimadamore
parents:
47216
diff
changeset
|
103 |
jdk.jshell; |
36526 | 104 |
exports com.sun.tools.javac.model to |
105 |
jdk.javadoc; |
|
106 |
exports com.sun.tools.javac.parser to |
|
107 |
jdk.jshell; |
|
108 |
exports com.sun.tools.javac.platform to |
|
47702
cf8310446245
8139607: -release option forces StandardJavaFileManager
jlahoda
parents:
47268
diff
changeset
|
109 |
jdk.jdeps, |
36526 | 110 |
jdk.javadoc; |
111 |
exports com.sun.tools.javac.tree to |
|
112 |
jdk.javadoc, |
|
113 |
jdk.jshell; |
|
114 |
exports com.sun.tools.javac.util to |
|
115 |
jdk.jdeps, |
|
116 |
jdk.javadoc, |
|
117 |
jdk.jshell; |
|
41865 | 118 |
exports jdk.internal.shellsupport.doc to |
119 |
jdk.jshell, |
|
120 |
jdk.scripting.nashorn.shell; |
|
36526 | 121 |
|
122 |
uses javax.annotation.processing.Processor; |
|
123 |
uses com.sun.source.util.Plugin; |
|
124 |
uses com.sun.tools.javac.platform.PlatformProvider; |
|
125 |
||
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
126 |
provides java.util.spi.ToolProvider with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
127 |
com.sun.tools.javac.main.JavacToolProvider; |
41448 | 128 |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
129 |
provides com.sun.tools.javac.platform.PlatformProvider with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
130 |
com.sun.tools.javac.platform.JDKPlatformProvider; |
36526 | 131 |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
132 |
provides javax.tools.JavaCompiler with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
133 |
com.sun.tools.javac.api.JavacTool; |
42498 | 134 |
|
45684
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
135 |
provides javax.tools.Tool with |
2c5f2779c3d1
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45680
diff
changeset
|
136 |
com.sun.tools.javac.api.JavacTool; |
36526 | 137 |
} |
138 |