MethodWriterImpl.java revision 0
/*
* Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
* 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. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* Writes method documentation in HTML format.
*
* @author Robert Field
* @author Atul M Dambalkar
* @author Jamie Ho (rewrite)
*/
public class MethodWriterImpl extends AbstractExecutableMemberWriter
implements MethodWriter, MemberSummaryWriter {
private boolean printedSummaryHeader = false;
/**
* Construct a new MethodWriterImpl.
*
* @param writer the writer for the class that the methods belong to.
* @param classDoc the class being documented.
*/
}
/**
* Construct a new MethodWriterImpl.
*
* @param writer The writer for the class that the methods belong to.
*/
super(writer);
}
/**
* Write the methods summary header for the given class.
*
* @param classDoc the class the summary belongs to.
*/
printedSummaryHeader = true;
}
/**
* Write the methods summary footer for the given class.
*
* @param classDoc the class the summary belongs to.
*/
}
/**
* Write the inherited methods summary header for the given class.
*
* @param classDoc the class the summary belongs to.
*/
if(! printedSummaryHeader){
//We don't want inherited summary to not be under heading.
printedSummaryHeader = true;
}
}
/**
* {@inheritDoc}
*/
}
/**
* Write the inherited methods summary footer for the given class.
*
* @param classDoc the class the summary belongs to.
*/
}
/**
* Write the header for the method documentation.
*
* @param classDoc the class that the methods belong to.
*/
}
/**
* Write the method header for the given method.
*
* @param method the method being documented.
* @param isFirst the flag to indicate whether or not the method is the
* first to be documented.
*/
if (! isFirst) {
}
}
}
/**
* Write the signature for the given method.
*
* @param method the method being documented.
*/
if (configuration().linksource) {
} else {
}
}
/**
* Write the deprecated output for the given method.
*
* @param method the method being documented.
*/
}
}
/**
* Write the comments for the given method.
*
* @param method the method being documented.
*/
(! (holderClassDoc.isPublic() ||
} else {
false));
"doclet.Description_From_Class":
"doclet.Description_From_Interface",
}
}
}
/**
* Write the tag output for the given method.
*
* @param method the method being documented.
*/
}
/**
* Write the method footer.
*/
public void writeMethodFooter() {
}
/**
* Write the footer for the method documentation.
*
* @param classDoc the class that the methods belong to.
*/
//No footer to write for method documentation
}
/**
* Close the writer.
*/
public void close() throws IOException {
}
public int getMemberKind() {
return VisibleMemberMap.METHODS;
}
}
}
}
"doclet.Methods_Inherited_From_Class" :
"doclet.Methods_Inherited_From_Interface";
}
}
return;
}
if (! (holderClassDoc.isPublic() ||
//This is an implementation detail that should not be documented.
return;
}
//The class is included but the method is not. That means that it
//is not visible so don't document this.
return;
}
//Abstract method is implemented from abstract class,
//not overridden
label = "doclet.Specified_By";
}
));
}
}
/**
* Parse the <Code> tag and return the text.
*/
return "";
}
return tag;
} else {
}
}
return;
}
implementedMeth.name(), false));
}
}
type));
print(' ');
}
}
if (link) {
"method_summary":
"methods_inherited_from_class_" +
} else {
}
}
protected void printNavDetailLink(boolean link) {
if (link) {
} else {
}
}
}