911N/A * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Class creates, controls and invokes doclets. 0N/A * @author Neal Gafter (rewrite) 0N/A // construct class loader 0N/A // do prepends to get correct ordering 0N/A // attempt to find doclet 208N/A * Returns the delegation class loader to use when creating 208N/A * appClassLoader (used to load the doclet). The context class 208N/A * loader is the best choice, but legacy behavior was to use the 208N/A * default delegation class loader (aka system class loader). 208N/A * Here we favor using the context class loader. To ensure 208N/A * compatibility with existing apps, we revert to legacy 208N/A * behavior if either or both of the following conditions hold: 208N/A * 1) the doclet is loadable from the system class loader but not 208N/A * from the context class loader, 208N/A * 2) this.getClass() is loadable from the system class loader but not 208N/A * from the context class loader. 0N/A * Generate documentation here. Return true on success. 0N/A * Check for doclet added options here. Zero return means 0N/A * option not known. Positive value indicates number of 0N/A * arguments to option. Negative value means error occurred. 0N/A * Let doclet check that all options are OK. Returning true means 0N/A * options are OK. If method does not exist, assume true. 0N/A * Return the language version supported by this doclet. 0N/A * If the method does not exist in the doclet, assume version 1.1. 0N/A * Utility method for calling doclet functionality