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

changeset 184
905e151a185a
parent 182
47a62d8d98b4
child 554
9d9f26857129
equal deleted inserted replaced
183:dbe9e82f9d25 184:905e151a185a
94 * 94 *
95 * @param parent the superclass or superinterface of the list. 95 * @param parent the superclass or superinterface of the list.
96 * @param list list of the sub-classes at this level. 96 * @param list list of the sub-classes at this level.
97 * @param isEnum true if we are generating a tree for enums. 97 * @param isEnum true if we are generating a tree for enums.
98 */ 98 */
99 protected void generateLevelInfo(ClassDoc parent, List list, 99 protected void generateLevelInfo(ClassDoc parent, List<ClassDoc> list,
100 boolean isEnum) { 100 boolean isEnum) {
101 if (list.size() > 0) { 101 if (list.size() > 0) {
102 ul(); 102 ul();
103 for (int i = 0; i < list.size(); i++) { 103 for (int i = 0; i < list.size(); i++) {
104 ClassDoc local = (ClassDoc)list.get(i); 104 ClassDoc local = list.get(i);
105 printPartialInfo(local); 105 printPartialInfo(local);
106 printExtendsImplements(parent, local); 106 printExtendsImplements(parent, local);
107 generateLevelInfo(local, classtree.subs(local, isEnum), 107 generateLevelInfo(local, classtree.subs(local, isEnum),
108 isEnum); // Recurse 108 isEnum); // Recurse
109 } 109 }
117 * 117 *
118 * @param list List of classes which are at the most base level, all the 118 * @param list List of classes which are at the most base level, all the
119 * other classes in this run will derive from these classes. 119 * other classes in this run will derive from these classes.
120 * @param heading Heading for the tree. 120 * @param heading Heading for the tree.
121 */ 121 */
122 protected void generateTree(List list, String heading) { 122 protected void generateTree(List<ClassDoc> list, String heading) {
123 if (list.size() > 0) { 123 if (list.size() > 0) {
124 ClassDoc firstClassDoc = (ClassDoc)list.get(0); 124 ClassDoc firstClassDoc = list.get(0);
125 printTreeHeading(heading); 125 printTreeHeading(heading);
126 generateLevelInfo(!firstClassDoc.isInterface()? firstClassDoc : null, 126 generateLevelInfo(!firstClassDoc.isInterface()? firstClassDoc : null,
127 list, 127 list,
128 list == classtree.baseEnums()); 128 list == classtree.baseEnums());
129 } 129 }

mercurial