< 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.javadoc,
263         jdk.jshell;

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

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

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

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

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

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



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

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

  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.javadoc,
265         jdk.jshell,
266         jdk.incubator.code;
267     exports com.sun.tools.javac.comp to
268         jdk.javadoc,
269         jdk.jshell,
270         jdk.incubator.code;
271     exports com.sun.tools.javac.file to
272         jdk.jdeps,
273         jdk.javadoc;
274     exports com.sun.tools.javac.jvm to
275         jdk.javadoc,
276         jdk.incubator.code;
277     exports com.sun.tools.javac.main to
278         jdk.javadoc,
279         jdk.jshell,
280         jdk.incubator.code;
281     exports com.sun.tools.javac.model to
282         jdk.javadoc,
283         jdk.incubator.code;
284     exports com.sun.tools.javac.parser to
285         jdk.jshell,
286         jdk.internal.md;
287     exports com.sun.tools.javac.platform to
288         jdk.jdeps,
289         jdk.javadoc;
290     exports com.sun.tools.javac.tree to
291         jdk.javadoc,
292         jdk.jshell,
293         jdk.internal.md,
294         jdk.incubator.code;
295     exports com.sun.tools.javac.util to
296         jdk.jdeps,
297         jdk.javadoc,
298         jdk.jshell,
299         jdk.internal.md,
300         jdk.incubator.code;
301     exports com.sun.tools.javac.processing to
302         jdk.incubator.code;
303 
304     uses javax.annotation.processing.Processor;
305     uses com.sun.source.util.Plugin;
306     uses com.sun.tools.doclint.DocLint;
307     uses com.sun.tools.javac.platform.PlatformProvider;
308     uses com.sun.tools.javac.api.JavacTrees.DocCommentTreeTransformer;
309     uses CodeReflectionTransformer;
310 
311     provides java.util.spi.ToolProvider with
312         com.sun.tools.javac.main.JavacToolProvider;
313 
314     provides com.sun.tools.javac.platform.PlatformProvider with
315         com.sun.tools.javac.platform.JDKPlatformProvider;
316 
317     provides javax.tools.JavaCompiler with
318         com.sun.tools.javac.api.JavacTool;
319 
320     provides javax.tools.Tool with
321         com.sun.tools.javac.api.JavacTool;
322 }
323 
< prev index next >