< 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

237  * @uses com.sun.tools.javac.platform.PlatformProvider
238  *
239  * @moduleGraph
240  * @since 9
241  */
242 module jdk.compiler {
243     requires transitive java.compiler;
244     requires jdk.internal.opt;
245     requires jdk.zipfs;
246 
247     exports com.sun.source.doctree;
248     exports com.sun.source.tree;
249     exports com.sun.source.util;
250     exports com.sun.tools.javac;
251 
252     exports com.sun.tools.doclint to
253         jdk.javadoc;
254     exports com.sun.tools.javac.api to
255         jdk.javadoc,
256         jdk.jshell,
257         jdk.internal.md;

258     exports com.sun.tools.javac.resources to
259         jdk.jshell;
260     exports com.sun.tools.javac.code to
261         jdk.javadoc,
262         jdk.jshell;

263     exports com.sun.tools.javac.comp to
264         jdk.javadoc,
265         jdk.jshell;

266     exports com.sun.tools.javac.file to
267         jdk.jdeps,
268         jdk.javadoc;
269     exports com.sun.tools.javac.jvm to
270         jdk.javadoc;

271     exports com.sun.tools.javac.main to
272         jdk.javadoc,
273         jdk.jshell;

274     exports com.sun.tools.javac.model to
275         jdk.javadoc;

276     exports com.sun.tools.javac.parser to
277         jdk.jshell,
278         jdk.internal.md;
279     exports com.sun.tools.javac.platform to
280         jdk.jdeps,
281         jdk.javadoc;
282     exports com.sun.tools.javac.tree to
283         jdk.javadoc,
284         jdk.jshell,
285         jdk.internal.md;

286     exports com.sun.tools.javac.util to
287         jdk.jdeps,
288         jdk.javadoc,
289         jdk.jshell,
290         jdk.internal.md;



291 
292     uses javax.annotation.processing.Processor;
293     uses com.sun.source.util.Plugin;
294     uses com.sun.tools.doclint.DocLint;
295     uses com.sun.tools.javac.platform.PlatformProvider;
296     uses com.sun.tools.javac.api.JavacTrees.DocCommentTreeTransformer;

297 
298     provides java.util.spi.ToolProvider with
299         com.sun.tools.javac.main.JavacToolProvider;
300 
301     provides com.sun.tools.javac.platform.PlatformProvider with
302         com.sun.tools.javac.platform.JDKPlatformProvider;
303 
304     provides javax.tools.JavaCompiler with
305         com.sun.tools.javac.api.JavacTool;
306 
307     provides javax.tools.Tool with
308         com.sun.tools.javac.api.JavacTool;
309 }
310 

  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

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