1117N/A * Copyright (c) 2001, 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 * This class could be the main entry point for Javadoc when Javadoc is used as a 0N/A * component in a larger software system. It provides operations to 0N/A * construct a new javadoc processor, and to run it on a set of source 0N/A * @author Neal Gafter 0N/A * Construct a new JavaCompiler processor, using appropriately 0N/A * extended phases of the underlying compiler. 0N/A * For javadoc, the parser needs to keep comments. Overrides method from JavaCompiler. 0N/A * Construct a new javadoc tool. 0N/A // force the use of Javadoc's class reader 0N/A // force the use of Javadoc's own enter phase 0N/A // force the use of Javadoc's own member enter phase 0N/A // force the use of Javadoc's own todo phase 0N/A // force the use of Messager as a Log 0N/A // Recursively search given subpackages. If any packages 0N/A //are found, add them to the list. 0N/A // Parse the packages 0N/A // Parse sources ostensibly belonging to package. 0N/A // Enter symbols for all files 0N/A /** Is the given string a valid package name? */ 0N/A * search all directories in path for subdirectory name. Add all 0N/A * .java files found in such a directory to args. 196N/A // messager.notice("main.Loading_source_file", fn); 0N/A * Recursively search all directories in path for subdirectory name. 0N/A * Add all packages found in such a directory to packages list. 0N/A * Recursively search all directories in path for subdirectory name. 0N/A * Add all packages found in such a directory to packages list. 0N/A // if filenames not null, then found directory 0N/A * Return true if given file name is a valid class file name. 0N/A * @param file the name of the file to check. 0N/A * @return true if given file name is a valid class file name 0N/A * and false otherwise. 0N/A * Return true if given file name is a valid Java source file name. 0N/A * @param file the name of the file to check. 0N/A * @return true if given file name is a valid Java source file name 0N/A * and false otherwise. 0N/A /** Are surrogates supported? 0N/A * Return true if given file name is a valid class name 0N/A * (including "package-info"). 0N/A * @param clazzname the name of the class to check. 0N/A * @return true if given class name is a valid class name 0N/A * and false otherwise. 0N/A * From a list of top level trees, return the list of contained class definitions