module-info.java revision 4168:2f01728210c1
1271440Sjkim/*
2271440Sjkim * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
3271440Sjkim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4271440Sjkim *
5271440Sjkim * This code is free software; you can redistribute it and/or modify it
6271440Sjkim * under the terms of the GNU General Public License version 2 only, as
7271440Sjkim * published by the Free Software Foundation.  Oracle designates this
8281075Sdim * particular file as subject to the "Classpath" exception as provided
9271440Sjkim * by Oracle in the LICENSE file that accompanied this code.
10271440Sjkim *
11271440Sjkim * This code is distributed in the hope that it will be useful, but WITHOUT
12271440Sjkim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13271440Sjkim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14271440Sjkim * version 2 for more details (a copy is included in the LICENSE file that
15271440Sjkim * accompanied this code).
16271440Sjkim *
17271440Sjkim * You should have received a copy of the GNU General Public License version
18271440Sjkim * 2 along with this work; if not, write to the Free Software Foundation,
19271440Sjkim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20271440Sjkim *
21271440Sjkim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22271440Sjkim * or visit www.oracle.com if you need additional information or have any
23271440Sjkim * questions.
24271440Sjkim */
25271440Sjkim
26271440Sjkim/**
27271440Sjkim * Defines the implementation of the
28271440Sjkim * {@linkplain javax.tools.ToolProvider#getSystemDocumentationTool system documentation tool}
29271440Sjkim * and its command line equivalent, <em>{@index javadoc javadoc tool}</em>.
30271440Sjkim *
31271440Sjkim * <h2 style="font-family:'DejaVu Sans Mono', monospace; font-style:italic">javadoc</h2>
32271440Sjkim *
33271440Sjkim * <p>
34271440Sjkim * This module provides the equivalent of command-line access to <em>javadoc</em>
35271440Sjkim * via the {@link java.util.spi.ToolProvider ToolProvider} and
36271440Sjkim * {@link javax.tools.Tool} service provider interfaces (SPIs),
37271440Sjkim * and more flexible access via the {@link javax.tools.DocumentationTool DocumentationTool}
38271440Sjkim * SPI.</p>
39271440Sjkim *
40271440Sjkim * <p> Instances of the tools can be obtained by calling
41271440Sjkim * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst}
42271440Sjkim * or the {@linkplain java.util.ServiceLoader service loader} with the name
43271440Sjkim * {@code "javadoc"}.
44272444Sjkim *
45272444Sjkim * <dl style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">
46271440Sjkim * <dt class="simpleTagLabel">Tool Guides:
47271440Sjkim * <dd>{@extLink javadoc_tool_reference javadoc}
48271440Sjkim * </dl>
49271440Sjkim *
50271440Sjkim * @provides java.util.spi.ToolProvider
51271440Sjkim * @provides javax.tools.DocumentationTool
52271440Sjkim * @provides javax.tools.Tool
53271440Sjkim *
54271440Sjkim * @see <a href="{@docRoot}/../specs/doc-comment-spec.html">
55271440Sjkim *      Documentation Comment Specification for the Standard Doclet</a>
56271440Sjkim *
57271440Sjkim * @moduleGraph
58271440Sjkim * @since 9
59271440Sjkim */
60271440Sjkimmodule jdk.javadoc {
61271440Sjkim    requires java.xml;
62271440Sjkim
63271440Sjkim    requires transitive java.compiler;
64271440Sjkim    requires transitive jdk.compiler;
65271440Sjkim
66271440Sjkim    exports com.sun.javadoc;
67271440Sjkim    exports com.sun.tools.doclets;
68271440Sjkim    exports com.sun.tools.doclets.standard;
69271440Sjkim    exports com.sun.tools.javadoc;
70271440Sjkim
71271440Sjkim    exports jdk.javadoc.doclet;
72271440Sjkim
73271440Sjkim    provides java.util.spi.ToolProvider with
74271440Sjkim        jdk.javadoc.internal.tool.JavadocToolProvider;
75271440Sjkim
76271440Sjkim    provides javax.tools.DocumentationTool with
77271440Sjkim        jdk.javadoc.internal.api.JavadocTool;
78271440Sjkim
79271440Sjkim    provides javax.tools.Tool with
80271440Sjkim        jdk.javadoc.internal.api.JavadocTool;
81271440Sjkim}
82271440Sjkim
83271440Sjkim