797N/A * Copyright (c) 2003, 2010, 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 * Builds the Constants Summary Page. 0N/A * This code is not part of an API. 0N/A * It is implementation that is subject to change. 0N/A * Do not use it as an API 765N/A * @author Bhavesh Patel (Modified) 0N/A * The root element of the constant summary XML is {@value}. 0N/A * The maximum number of package directories shown in the constant 0N/A * The writer used to write the results. 0N/A * The set of ClassDocs that have constant fields. 0N/A * The set of printed package headers. 0N/A * The current package being documented. 0N/A * The current class being documented. 765N/A * The content tree for the constant summary documentation. 0N/A * Construct a new ConstantsSummaryBuilder. 0N/A * @param configuration the current configuration of the 0N/A * Construct a ConstantsSummaryBuilder. 0N/A * @param configuration the configuration used in this run 0N/A * @param writer the writer for the summary. 0N/A //Doclet does not support this output. 0N/A * Build the constant summary. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param contentTree the content tree to which the documentation will be added 765N/A * Build the list of packages. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param contentTree the content tree to which the content list will be added 0N/A * Build the summary for each documented package. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param contentTree the tree to which the summaries will be added 0N/A //Build the documentation for the current package. 765N/A * Build the header for the given package. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param summariesTree the tree to which the package header will be added 0N/A * Build the summary for the current class. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param summariesTree the tree to which the class constant summary will be added 0N/A //Build the documentation for the current class. 765N/A * Build the summary of constant members in the class. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param classConstantTree the tree to which the constant members table 0N/A * Return true if the given package has constant fields to document. 0N/A * @param pkg the package being checked. 0N/A * @return true if the given package has constant fields to document. 0N/A * Return true if the given class has constant fields to document. 0N/A * @param classDoc the class being checked. 0N/A * @return true if the given package has constant fields to document. 0N/A * Return true if the given package name has been printed. Also 0N/A * return true if the root of this package has been printed. 0N/A * @param pkgname the name of the package to check. 0N/A * Print the table of constants. 0N/A * The map used to get the visible variables. 0N/A * The map used to get the visible variables. 0N/A * The classdoc that we are examining constants for. 0N/A * Construct a ConstantFieldSubWriter. 0N/A * @param classdoc the classdoc that we are examining constants for. 0N/A * Builds the table of constants for a given class. 765N/A * @param node the XML element that specifies which components to document 765N/A * @param classConstantTree the tree to which the class constants table 0N/A * Return the list of visible constant fields for the given classdoc. 0N/A * @param cd the classdoc to examine. 0N/A * @return the list of visible constant fields for the given classdoc. 0N/A * Parse the package name. We only want to display package name up to