/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Main program of Javadoc.
* Previously named "Main".
*
* @since 1.2
* @author Robert Field
* @author Neal Gafter (rewrite)
*/
class Start {
"com.sun.tools.doclets.standard.Standard";
boolean breakiterator = false;
boolean quiet = false;
/* Treat warnings as errors. */
private boolean rejectWarnings = false;
}
}
}
}
}
this(programName, standardDocletClassName);
}
this(javadocName, docletParentClassLoader);
}
Start() {
this(javadocName);
}
/**
* Usage
*/
private void usage() {
// let doclet print usage information (does nothing on error)
if (docletInvoker != null) {
}
}
/**
* Usage
*/
private void Xusage() {
}
/**
* Exit
*/
private void exit() {
}
/**
* Main program - external wrapper
*/
boolean failed = false;
try {
// ignore, we just exit this way
} catch (OutOfMemoryError ee) {
failed = true;
failed = true;
failed = true;
} finally {
}
}
while(st.hasMoreTokens()){
}
}
/**
* Main program - internal
*/
// Preprocess @file arguments
try {
} catch (FileNotFoundException e) {
exit();
} catch (IOException e) {
e.printStackTrace();
exit();
}
// Setup a new Messager, using the same initial parameters as the
// existing Messager, except that this one will be able to use any
// options that may be set up below.
boolean docClasses = false;
// Parse arguments
breakiterator = true;
setOption("-breakiterator");
quiet = true;
setOption("-quiet");
usage();
exit();
docClasses = true;
rejectWarnings = true;
}
messager.promptOnError = true;
}
}
}
}
}
i++; // handled in setDocletInvoker
i++; // handled in setDocletInvoker
if (i != 0)
usageError("main.locale_first");
}
Xusage();
exit();
}
// call doclet for its options
// other arg starts with - is invalid
int optionLength;
if (optionLength < 0) {
// error already displayed
exit();
} else if (optionLength == 0) {
// option not found
} else {
// doclet added option
}
}
}
} else {
}
}
usageError("main.No_packages_or_classes_specified");
}
// error message already displayed
exit();
}
if (showAccess == null) {
}
// legacy?
// pass off control to the doclet
// We're done.
}
return ok;
}
// Parse doclet specifying arguments
if (docletClassName != null) {
usageError("main.more_than_one_doclet_specified_0_and_1",
docletClassName, argv[i]);
}
docletClassName = argv[i];
if (docletPath == null) {
docletPath = argv[i];
} else {
}
}
}
if (docletClassName == null) {
}
// attempt to find doclet
}
if (showAccess != null) {
usage();
exit();
}
}
/**
* Set one arg option.
* Error and exit if one argument is not provided.
*/
} else {
}
}
usage();
exit();
}
usage();
exit();
}
usage();
exit();
}
/**
* indicate an option with no arguments was given.
*/
}
/**
* indicate an option with one argument was given.
*/
}
/**
* indicate an option with the specified list of arguments was given.
*/
int k = 0;
}
}
}