001/*
002 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004 *
005 * This code is free software; you can redistribute it and/or modify it
006 * under the terms of the GNU General Public License version 2 only, as
007 * published by the Free Software Foundation.  Oracle designates this
008 * particular file as subject to the "Classpath" exception as provided
009 * by Oracle in the LICENSE file that accompanied this code.
010 *
011 * This code is distributed in the hope that it will be useful, but WITHOUT
012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014 * version 2 for more details (a copy is included in the LICENSE file that
015 * accompanied this code).
016 *
017 * You should have received a copy of the GNU General Public License version
018 * 2 along with this work; if not, write to the Free Software Foundation,
019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020 *
021 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
022 * or visit www.oracle.com if you need additional information or have any
023 * questions.
024 */
025
026// package jdk.javadoc.doclet;
027package org.opengion.fukurou.taglet;            // 7.4.4.0 (2021/06/30) openGionV8事前準備(taglet2→taglet)
028
029import java.util.Locale;
030import java.util.Set;
031
032import javax.lang.model.SourceVersion;
033
034import jdk.javadoc.internal.doclets.formats.html.HtmlDoclet;
035import jdk.javadoc.doclet.*;
036
037/**
038 * This doclet generates HTML-formatted documentation for the specified modules,
039 * packages and types.
040 *
041 * @see <a href="{@docRoot}/../specs/doc-comment-spec.html">
042 *      Documentation Comment Specification for the Standard Doclet</a>
043 */
044public class StandardDoclet implements Doclet {
045
046    private final HtmlDoclet htmlDoclet;
047
048    public StandardDoclet() {
049        htmlDoclet = new HtmlDoclet(this);
050    }
051
052    @Override
053    public void init(Locale locale, Reporter reporter) {
054        htmlDoclet.init(locale, reporter);
055    }
056
057    @Override
058    public String getName() {
059        return "Standard";
060    }
061
062    @Override
063    public Set<Doclet.Option> getSupportedOptions() {
064        return htmlDoclet.getSupportedOptions();
065    }
066
067    @Override
068    public SourceVersion getSupportedSourceVersion() {
069        return htmlDoclet.getSupportedSourceVersion();
070    }
071
072    @Override
073    public boolean run(DocletEnvironment docEnv) {
074        return htmlDoclet.run(docEnv);
075    }
076}