< prev index next >

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

Print this page


   1 /*
   2  * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
   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


  38  * SPI.</p>
  39  *
  40  * <p> Instances of the tools can be obtained by calling
  41  * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst}
  42  * or the {@linkplain java.util.ServiceLoader service loader} with the name
  43  * {@code "javac"}.
  44  *
  45  * <p>
  46  * In addition, instances of {@link javax.tools.JavaCompiler.CompilationTask}
  47  * obtained from {@linkplain javax.tools.JavaCompiler JavaCompiler} can be
  48  * downcast to {@link com.sun.source.util.JavacTask JavacTask} for access to
  49  * lower level aspects of <em>javac</em>, such as the
  50  * {@link com.sun.source.tree Abstract Syntax Tree} (AST).</p>
  51  *
  52  * <p>This module uses the {@link java.nio.file.spi.FileSystemProvider
  53  * FileSystemProvider} API to locate file system providers. In particular,
  54  * this means that a jar file system provider, such as that in the
  55  * {@code jdk.zipfs} module, must be available if the compiler is to be able
  56  * to read JAR files.
  57  *
  58  * @toolGuide javac



  59  *
  60  * @provides java.util.spi.ToolProvider
  61  * @provides com.sun.tools.javac.platform.PlatformProvider
  62  * @provides javax.tools.JavaCompiler
  63  * @provides javax.tools.Tool
  64  *
  65  * @uses javax.annotation.processing.Processor
  66  * @uses com.sun.source.util.Plugin
  67  * @uses com.sun.tools.javac.platform.PlatformProvider
  68  *
  69  * @moduleGraph
  70  * @since 9
  71  */
  72 module jdk.compiler {
  73     requires transitive java.compiler;
  74 
  75     exports com.sun.source.doctree;
  76     exports com.sun.source.tree;
  77     exports com.sun.source.util;
  78     exports com.sun.tools.javac;


 114         jdk.jshell;
 115     exports jdk.internal.shellsupport.doc to
 116         jdk.jshell,
 117         jdk.scripting.nashorn.shell;
 118 
 119     uses javax.annotation.processing.Processor;
 120     uses com.sun.source.util.Plugin;
 121     uses com.sun.tools.javac.platform.PlatformProvider;
 122 
 123     provides java.util.spi.ToolProvider with
 124         com.sun.tools.javac.main.JavacToolProvider;
 125 
 126     provides com.sun.tools.javac.platform.PlatformProvider with
 127         com.sun.tools.javac.platform.JDKPlatformProvider;
 128 
 129     provides javax.tools.JavaCompiler with
 130         com.sun.tools.javac.api.JavacTool;
 131 
 132     provides javax.tools.Tool with
 133         com.sun.tools.javac.api.JavacTool;
 134 }
 135 





   1 /*
   2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
   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


  38  * SPI.</p>
  39  *
  40  * <p> Instances of the tools can be obtained by calling
  41  * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst}
  42  * or the {@linkplain java.util.ServiceLoader service loader} with the name
  43  * {@code "javac"}.
  44  *
  45  * <p>
  46  * In addition, instances of {@link javax.tools.JavaCompiler.CompilationTask}
  47  * obtained from {@linkplain javax.tools.JavaCompiler JavaCompiler} can be
  48  * downcast to {@link com.sun.source.util.JavacTask JavacTask} for access to
  49  * lower level aspects of <em>javac</em>, such as the
  50  * {@link com.sun.source.tree Abstract Syntax Tree} (AST).</p>
  51  *
  52  * <p>This module uses the {@link java.nio.file.spi.FileSystemProvider
  53  * FileSystemProvider} API to locate file system providers. In particular,
  54  * this means that a jar file system provider, such as that in the
  55  * {@code jdk.zipfs} module, must be available if the compiler is to be able
  56  * to read JAR files.
  57  *
  58  * <dl style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">
  59  * <dt class="simpleTagLabel">Tool Guides:
  60  * <dd>{@extLink javac_tool_reference javac}
  61  * </dl>
  62  *
  63  * @provides java.util.spi.ToolProvider
  64  * @provides com.sun.tools.javac.platform.PlatformProvider
  65  * @provides javax.tools.JavaCompiler
  66  * @provides javax.tools.Tool
  67  *
  68  * @uses javax.annotation.processing.Processor
  69  * @uses com.sun.source.util.Plugin
  70  * @uses com.sun.tools.javac.platform.PlatformProvider
  71  *
  72  * @moduleGraph
  73  * @since 9
  74  */
  75 module jdk.compiler {
  76     requires transitive java.compiler;
  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;


 117         jdk.jshell;
 118     exports jdk.internal.shellsupport.doc to
 119         jdk.jshell,
 120         jdk.scripting.nashorn.shell;
 121 
 122     uses javax.annotation.processing.Processor;
 123     uses com.sun.source.util.Plugin;
 124     uses com.sun.tools.javac.platform.PlatformProvider;
 125 
 126     provides java.util.spi.ToolProvider with
 127         com.sun.tools.javac.main.JavacToolProvider;
 128 
 129     provides com.sun.tools.javac.platform.PlatformProvider with
 130         com.sun.tools.javac.platform.JDKPlatformProvider;
 131 
 132     provides javax.tools.JavaCompiler with
 133         com.sun.tools.javac.api.JavacTool;
 134 
 135     provides javax.tools.Tool with
 136         com.sun.tools.javac.api.JavacTool;

 137 
 138     uses com.sun.tools.javac.intrinsics.IntrinsicProcessor;
 139 
 140     provides com.sun.tools.javac.intrinsics.IntrinsicProcessor with
 141         com.sun.tools.javac.intrinsics.FormatterProcessor;
 142 }
< prev index next >