langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java
changeset 1789 7ac8c0815000
parent 1787 1aa079321cd2
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
    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         }