src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java

changeset 222
d424ed561993
parent 184
905e151a185a
child 229
03bcd66bd8e7
child 233
5240b1120530
equal deleted inserted replaced
221:6ada6122dd4f 222:d424ed561993
240 //I hate to do this but we have to pass the diff test to prove 240 //I hate to do this but we have to pass the diff test to prove
241 //nothing has broken. 241 //nothing has broken.
242 printTagsInfoHeader(); 242 printTagsInfoHeader();
243 printTagsInfoFooter(); 243 printTagsInfoFooter();
244 } 244 }
245 }
246
247 /**
248 * Check whether there are any tags to be printed.
249 *
250 * @param doc the Doc object to check for tags.
251 * @return true if there are tags to be printed else return false.
252 */
253 protected boolean hasTagsToPrint(Doc doc) {
254 if (doc instanceof MethodDoc) {
255 ClassDoc[] intfacs = ((MethodDoc)doc).containingClass().interfaces();
256 MethodDoc overriddenMethod = ((MethodDoc)doc).overriddenMethod();
257 if ((intfacs.length > 0 &&
258 new ImplementedMethods((MethodDoc)doc, this.configuration).build().length > 0) ||
259 overriddenMethod != null) {
260 return true;
261 }
262 }
263 TagletOutputImpl output = new TagletOutputImpl("");
264 TagletWriter.genTagOuput(configuration.tagletManager, doc,
265 configuration.tagletManager.getCustomTags(doc),
266 getTagletWriterInstance(false), output);
267 return (output.toString().trim().isEmpty());
245 } 268 }
246 269
247 /** 270 /**
248 * Returns a TagletWriter that knows how to write HTML. 271 * Returns a TagletWriter that knows how to write HTML.
249 * 272 *

mercurial