langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
equal
deleted
inserted
replaced
258 Content span = HtmlTree.SPAN(HtmlStyle.typeNameLabel, className); |
258 Content span = HtmlTree.SPAN(HtmlStyle.typeNameLabel, className); |
259 span.addContent(parameterLinks); |
259 span.addContent(parameterLinks); |
260 pre.addContent(span); |
260 pre.addContent(span); |
261 } |
261 } |
262 if (!isInterface) { |
262 if (!isInterface) { |
263 Type superclass = Util.getFirstVisibleSuperClass(classDoc, |
263 Type superclass = utils.getFirstVisibleSuperClass(classDoc, |
264 configuration); |
264 configuration); |
265 if (superclass != null) { |
265 if (superclass != null) { |
266 pre.addContent(DocletConstants.NL); |
266 pre.addContent(DocletConstants.NL); |
267 pre.addContent("extends "); |
267 pre.addContent("extends "); |
268 Content link = getLink(new LinkInfoImpl(configuration, |
268 Content link = getLink(new LinkInfoImpl(configuration, |
274 Type[] implIntfacs = classDoc.interfaceTypes(); |
274 Type[] implIntfacs = classDoc.interfaceTypes(); |
275 if (implIntfacs != null && implIntfacs.length > 0) { |
275 if (implIntfacs != null && implIntfacs.length > 0) { |
276 int counter = 0; |
276 int counter = 0; |
277 for (Type implType : implIntfacs) { |
277 for (Type implType : implIntfacs) { |
278 ClassDoc classDoc = implType.asClassDoc(); |
278 ClassDoc classDoc = implType.asClassDoc(); |
279 if (!(classDoc.isPublic() || Util.isLinkable(classDoc, configuration))) { |
279 if (!(classDoc.isPublic() || utils.isLinkable(classDoc, configuration))) { |
280 continue; |
280 continue; |
281 } |
281 } |
282 if (counter == 0) { |
282 if (counter == 0) { |
283 pre.addContent(DocletConstants.NL); |
283 pre.addContent(DocletConstants.NL); |
284 pre.addContent(isInterface ? "extends " : "implements "); |
284 pre.addContent(isInterface ? "extends " : "implements "); |
327 Type sup; |
327 Type sup; |
328 HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL); |
328 HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL); |
329 classTreeUl.addStyle(HtmlStyle.inheritance); |
329 classTreeUl.addStyle(HtmlStyle.inheritance); |
330 Content liTree = null; |
330 Content liTree = null; |
331 do { |
331 do { |
332 sup = Util.getFirstVisibleSuperClass( |
332 sup = utils.getFirstVisibleSuperClass( |
333 type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(), |
333 type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(), |
334 configuration); |
334 configuration); |
335 if (sup != null) { |
335 if (sup != null) { |
336 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
336 HtmlTree ul = new HtmlTree(HtmlTag.UL); |
337 ul.addStyle(HtmlStyle.inheritance); |
337 ul.addStyle(HtmlStyle.inheritance); |
469 * {@inheritDoc} |
469 * {@inheritDoc} |
470 */ |
470 */ |
471 public void addImplementedInterfacesInfo(Content classInfoTree) { |
471 public void addImplementedInterfacesInfo(Content classInfoTree) { |
472 //NOTE: we really should be using ClassDoc.interfaceTypes() here, but |
472 //NOTE: we really should be using ClassDoc.interfaceTypes() here, but |
473 // it doesn't walk up the tree like we want it to. |
473 // it doesn't walk up the tree like we want it to. |
474 List<Type> interfaceArray = Util.getAllInterfaces(classDoc, configuration); |
474 List<Type> interfaceArray = utils.getAllInterfaces(classDoc, configuration); |
475 if (classDoc.isClass() && interfaceArray.size() > 0) { |
475 if (classDoc.isClass() && interfaceArray.size() > 0) { |
476 Content label = getResource( |
476 Content label = getResource( |
477 "doclet.All_Implemented_Interfaces"); |
477 "doclet.All_Implemented_Interfaces"); |
478 Content dt = HtmlTree.DT(label); |
478 Content dt = HtmlTree.DT(label); |
479 Content dl = HtmlTree.DL(dt); |
479 Content dl = HtmlTree.DL(dt); |
487 * {@inheritDoc} |
487 * {@inheritDoc} |
488 */ |
488 */ |
489 public void addSuperInterfacesInfo(Content classInfoTree) { |
489 public void addSuperInterfacesInfo(Content classInfoTree) { |
490 //NOTE: we really should be using ClassDoc.interfaceTypes() here, but |
490 //NOTE: we really should be using ClassDoc.interfaceTypes() here, but |
491 // it doesn't walk up the tree like we want it to. |
491 // it doesn't walk up the tree like we want it to. |
492 List<Type> interfaceArray = Util.getAllInterfaces(classDoc, configuration); |
492 List<Type> interfaceArray = utils.getAllInterfaces(classDoc, configuration); |
493 if (classDoc.isInterface() && interfaceArray.size() > 0) { |
493 if (classDoc.isInterface() && interfaceArray.size() > 0) { |
494 Content label = getResource( |
494 Content label = getResource( |
495 "doclet.All_Superinterfaces"); |
495 "doclet.All_Superinterfaces"); |
496 Content dt = HtmlTree.DT(label); |
496 Content dt = HtmlTree.DT(label); |
497 Content dl = HtmlTree.DL(dt); |
497 Content dl = HtmlTree.DL(dt); |
557 */ |
557 */ |
558 public void addClassDeprecationInfo(Content classInfoTree) { |
558 public void addClassDeprecationInfo(Content classInfoTree) { |
559 Content hr = new HtmlTree(HtmlTag.HR); |
559 Content hr = new HtmlTree(HtmlTag.HR); |
560 classInfoTree.addContent(hr); |
560 classInfoTree.addContent(hr); |
561 Tag[] deprs = classDoc.tags("deprecated"); |
561 Tag[] deprs = classDoc.tags("deprecated"); |
562 if (Util.isDeprecated(classDoc)) { |
562 if (utils.isDeprecated(classDoc)) { |
563 Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); |
563 Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); |
564 Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); |
564 Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); |
565 if (deprs.length > 0) { |
565 if (deprs.length > 0) { |
566 Tag[] commentTags = deprs[0].inlineTags(); |
566 Tag[] commentTags = deprs[0].inlineTags(); |
567 if (commentTags.length > 0) { |
567 if (commentTags.length > 0) { |