001/**
002 * Copyright 2013-2015 John Ericksen
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *    http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.asciidoctor.asciidoclet;
017
018import com.sun.javadoc.DocErrorReporter;
019import com.sun.javadoc.RootDoc;
020import com.sun.tools.doclets.standard.Standard;
021
022/**
023 * Adapter class to use the Standard Javadoc Doclet in a non-static context.
024 *
025 * @author John Ericksen
026 */
027public class StandardAdapter {
028
029    public int optionLength(String option) {
030        return Standard.optionLength(option);
031    }
032
033    public boolean start(RootDoc rootDoc) {
034        return Standard.start(rootDoc);
035    }
036
037    public boolean validOptions(String[][] options, DocErrorReporter errorReporter) {
038        return Standard.validOptions(options, errorReporter);
039    }
040}