< prev index next >

src/jdk.compiler/share/classes/module-info.java

Print this page

  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 import javax.tools.JavaCompiler;
 27 import javax.tools.StandardLocation;
 28 
 29 /**
 30  * Defines the implementation of the
 31  * {@linkplain javax.tools.ToolProvider#getSystemJavaCompiler system Java compiler}
 32  * and its command line equivalent, <em>{@index javac javac tool}</em>.
 33  *
 34  * <p>The {@code com.sun.source.*} packages provide the {@index "Compiler Tree API"}:
 35  * an API for accessing the abstract trees (ASTs) representing Java source code
 36  * and documentation comments, used by <em>javac</em>, <em>javadoc</em> and related tools.
 37  *
 38  * <h2 style="font-family:'DejaVu Sans Mono', monospace; font-style:italic">javac</h2>
 39  *
 40  * <p>
 41  * This module provides the equivalent of command-line access to <em>javac</em>
 42  * via the {@link java.util.spi.ToolProvider ToolProvider} and
 43  * {@link javax.tools.Tool} service provider interfaces (SPIs),
 44  * and more flexible access via the {@link javax.tools.JavaCompiler JavaCompiler}
 45  * SPI.</p>
 46  *
 47  * <p> Instances of the tools can be obtained by calling

222  * @uses com.sun.tools.javac.platform.PlatformProvider
223  *
224  * @moduleGraph
225  * @since 9
226  */
227 module jdk.compiler {
228     requires transitive java.compiler;
229     requires jdk.internal.opt;
230     requires jdk.zipfs;
231 
232     exports com.sun.source.doctree;
233     exports com.sun.source.tree;
234     exports com.sun.source.util;
235     exports com.sun.tools.javac;
236 
237     exports com.sun.tools.doclint to
238         jdk.javadoc;
239     exports com.sun.tools.javac.api to
240         jdk.javadoc,
241         jdk.jshell,
242         jdk.internal.md;

243     exports com.sun.tools.javac.resources to
244         jdk.jshell;
245     exports com.sun.tools.javac.code to
246         jdk.javadoc,
247         jdk.jshell;

248     exports com.sun.tools.javac.comp to
249         jdk.javadoc,
250         jdk.jshell;

251     exports com.sun.tools.javac.file to
252         jdk.jdeps,
253         jdk.javadoc;
254     exports com.sun.tools.javac.jvm to
255         jdk.javadoc;

256     exports com.sun.tools.javac.main to
257         jdk.javadoc,
258         jdk.jshell;

259     exports com.sun.tools.javac.model to
260         jdk.javadoc;

261     exports com.sun.tools.javac.parser to
262         jdk.jshell,
263         jdk.internal.md;
264     exports com.sun.tools.javac.platform to
265         jdk.jdeps,
266         jdk.javadoc;
267     exports com.sun.tools.javac.tree to
268         jdk.javadoc,
269         jdk.jshell,
270         jdk.internal.md;

271     exports com.sun.tools.javac.util to
272         jdk.jdeps,
273         jdk.javadoc,
274         jdk.jshell,
275         jdk.internal.md;



276 
277     uses javax.annotation.processing.Processor;
278     uses com.sun.source.util.Plugin;
279     uses com.sun.tools.doclint.DocLint;
280     uses com.sun.tools.javac.platform.PlatformProvider;
281     uses com.sun.tools.javac.api.JavacTrees.DocCommentTreeTransformer;

282 
283     provides java.util.spi.ToolProvider with
284         com.sun.tools.javac.main.JavacToolProvider;
285 
286     provides com.sun.tools.javac.platform.PlatformProvider with
287         com.sun.tools.javac.platform.JDKPlatformProvider;
288 
289     provides javax.tools.JavaCompiler with
290         com.sun.tools.javac.api.JavacTool;
291 
292     provides javax.tools.Tool with
293         com.sun.tools.javac.api.JavacTool;
294 }
295 

  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 import com.sun.tools.javac.comp.CodeReflectionTransformer;

 27 
 28 /**
 29  * Defines the implementation of the
 30  * {@linkplain javax.tools.ToolProvider#getSystemJavaCompiler system Java compiler}
 31  * and its command line equivalent, <em>{@index javac javac tool}</em>.
 32  *
 33  * <p>The {@code com.sun.source.*} packages provide the {@index "Compiler Tree API"}:
 34  * an API for accessing the abstract trees (ASTs) representing Java source code
 35  * and documentation comments, used by <em>javac</em>, <em>javadoc</em> and related tools.
 36  *
 37  * <h2 style="font-family:'DejaVu Sans Mono', monospace; font-style:italic">javac</h2>
 38  *
 39  * <p>
 40  * This module provides the equivalent of command-line access to <em>javac</em>
 41  * via the {@link java.util.spi.ToolProvider ToolProvider} and
 42  * {@link javax.tools.Tool} service provider interfaces (SPIs),
 43  * and more flexible access via the {@link javax.tools.JavaCompiler JavaCompiler}
 44  * SPI.</p>
 45  *
 46  * <p> Instances of the tools can be obtained by calling

221  * @uses com.sun.tools.javac.platform.PlatformProvider
222  *
223  * @moduleGraph
224  * @since 9
225  */
226 module jdk.compiler {
227     requires transitive java.compiler;
228     requires jdk.internal.opt;
229     requires jdk.zipfs;
230 
231     exports com.sun.source.doctree;
232     exports com.sun.source.tree;
233     exports com.sun.source.util;
234     exports com.sun.tools.javac;
235 
236     exports com.sun.tools.doclint to
237         jdk.javadoc;
238     exports com.sun.tools.javac.api to
239         jdk.javadoc,
240         jdk.jshell,
241         jdk.internal.md,
242         jdk.incubator.code;
243     exports com.sun.tools.javac.resources to
244         jdk.jshell, jdk.incubator.code;
245     exports com.sun.tools.javac.code to
246         jdk.javadoc,
247         jdk.jshell,
248         jdk.incubator.code;
249     exports com.sun.tools.javac.comp to
250         jdk.javadoc,
251         jdk.jshell,
252         jdk.incubator.code;
253     exports com.sun.tools.javac.file to
254         jdk.jdeps,
255         jdk.javadoc;
256     exports com.sun.tools.javac.jvm to
257         jdk.javadoc,
258         jdk.incubator.code;
259     exports com.sun.tools.javac.main to
260         jdk.javadoc,
261         jdk.jshell,
262         jdk.incubator.code;
263     exports com.sun.tools.javac.model to
264         jdk.javadoc,
265         jdk.incubator.code;
266     exports com.sun.tools.javac.parser to
267         jdk.jshell,
268         jdk.internal.md;
269     exports com.sun.tools.javac.platform to
270         jdk.jdeps,
271         jdk.javadoc;
272     exports com.sun.tools.javac.tree to
273         jdk.javadoc,
274         jdk.jshell,
275         jdk.internal.md,
276         jdk.incubator.code;
277     exports com.sun.tools.javac.util to
278         jdk.jdeps,
279         jdk.javadoc,
280         jdk.jshell,
281         jdk.internal.md,
282         jdk.incubator.code;
283     exports com.sun.tools.javac.processing to
284         jdk.incubator.code;
285 
286     uses javax.annotation.processing.Processor;
287     uses com.sun.source.util.Plugin;
288     uses com.sun.tools.doclint.DocLint;
289     uses com.sun.tools.javac.platform.PlatformProvider;
290     uses com.sun.tools.javac.api.JavacTrees.DocCommentTreeTransformer;
291     uses CodeReflectionTransformer;
292 
293     provides java.util.spi.ToolProvider with
294         com.sun.tools.javac.main.JavacToolProvider;
295 
296     provides com.sun.tools.javac.platform.PlatformProvider with
297         com.sun.tools.javac.platform.JDKPlatformProvider;
298 
299     provides javax.tools.JavaCompiler with
300         com.sun.tools.javac.api.JavacTool;
301 
302     provides javax.tools.Tool with
303         com.sun.tools.javac.api.JavacTool;
304 }
305 
< prev index next >