< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java

Print this page




 149         baseAnnotationTypes = new TreeSet<>(comparator);
 150         baseEnums = new TreeSet<>(comparator);
 151         baseClasses = new TreeSet<>(comparator);
 152         baseInterfaces = new TreeSet<>(comparator);
 153         buildTree(classesSet);
 154     }
 155 
 156     /**
 157      * Generate mapping for the sub-classes for every class in this run.
 158      * Return the sub-class set for java.lang.Object which will be having
 159      * sub-class listing for itself and also for each sub-class itself will
 160      * have their own sub-class lists.
 161      *
 162      * @param classes all the classes in this run.
 163      */
 164     private void buildTree(Iterable<TypeElement> classes) {
 165         for (TypeElement aClass : classes) {
 166             // In the tree page (e.g overview-tree.html) do not include
 167             // information of classes which are deprecated or are a part of a
 168             // deprecated package.
 169             if (configuration.nodeprecated &&
 170                     (utils.isDeprecated(aClass) ||
 171                     utils.isDeprecated(utils.containingPackage(aClass)))) {
 172                 continue;
 173             }
 174 
 175             if (utils.hasHiddenTag(aClass)) {
 176                 continue;
 177             }
 178 
 179             if (utils.isEnum(aClass)) {
 180                 processType(aClass, configuration, baseEnums, subEnums);
 181             } else if (utils.isClass(aClass)) {
 182                 processType(aClass, configuration, baseClasses, subClasses);
 183             } else if (utils.isInterface(aClass)) {
 184                 processInterface(aClass);
 185             } else if (utils.isAnnotationType(aClass)) {
 186                 processType(aClass, configuration, baseAnnotationTypes,
 187                     subAnnotationTypes);
 188             }
 189         }




 149         baseAnnotationTypes = new TreeSet<>(comparator);
 150         baseEnums = new TreeSet<>(comparator);
 151         baseClasses = new TreeSet<>(comparator);
 152         baseInterfaces = new TreeSet<>(comparator);
 153         buildTree(classesSet);
 154     }
 155 
 156     /**
 157      * Generate mapping for the sub-classes for every class in this run.
 158      * Return the sub-class set for java.lang.Object which will be having
 159      * sub-class listing for itself and also for each sub-class itself will
 160      * have their own sub-class lists.
 161      *
 162      * @param classes all the classes in this run.
 163      */
 164     private void buildTree(Iterable<TypeElement> classes) {
 165         for (TypeElement aClass : classes) {
 166             // In the tree page (e.g overview-tree.html) do not include
 167             // information of classes which are deprecated or are a part of a
 168             // deprecated package.
 169             if (configuration.getOptions().noDeprecated &&
 170                     (utils.isDeprecated(aClass) ||
 171                     utils.isDeprecated(utils.containingPackage(aClass)))) {
 172                 continue;
 173             }
 174 
 175             if (utils.hasHiddenTag(aClass)) {
 176                 continue;
 177             }
 178 
 179             if (utils.isEnum(aClass)) {
 180                 processType(aClass, configuration, baseEnums, subEnums);
 181             } else if (utils.isClass(aClass)) {
 182                 processType(aClass, configuration, baseClasses, subClasses);
 183             } else if (utils.isInterface(aClass)) {
 184                 processInterface(aClass);
 185             } else if (utils.isAnnotationType(aClass)) {
 186                 processType(aClass, configuration, baseAnnotationTypes,
 187                     subAnnotationTypes);
 188             }
 189         }


< prev index next >