< prev index next >

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

Print this page

  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

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

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

265     exports com.sun.tools.javac.comp to
266         jdk.javadoc,
267         jdk.jshell;

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     exports com.sun.tools.javac.main to
274         jdk.javadoc,
275         jdk.jshell;

276     exports com.sun.tools.javac.model to
277         jdk.javadoc;

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

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



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

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

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

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