langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
equal
deleted
inserted
replaced
42 import javax.lang.model.element.TypeElement; |
42 import javax.lang.model.element.TypeElement; |
43 import javax.lang.model.type.TypeMirror; |
43 import javax.lang.model.type.TypeMirror; |
44 |
44 |
45 import jdk.javadoc.doclet.DocletEnvironment; |
45 import jdk.javadoc.doclet.DocletEnvironment; |
46 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
46 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
|
47 import jdk.javadoc.internal.doclets.toolkit.Messages; |
47 |
48 |
48 /** |
49 /** |
49 * Build Class Hierarchy for all the Classes. This class builds the Class |
50 * Build Class Hierarchy for all the Classes. This class builds the Class |
50 * Tree and the Interface Tree separately. |
51 * Tree and the Interface Tree separately. |
51 * |
52 * |
103 * @param configuration the configuration of the doclet. |
104 * @param configuration the configuration of the doclet. |
104 * @param noDeprecated Don't add deprecated classes in the class tree, if |
105 * @param noDeprecated Don't add deprecated classes in the class tree, if |
105 * true. |
106 * true. |
106 */ |
107 */ |
107 public ClassTree(Configuration configuration, boolean noDeprecated) { |
108 public ClassTree(Configuration configuration, boolean noDeprecated) { |
108 configuration.message.notice("doclet.Building_Tree"); |
|
109 this.configuration = configuration; |
109 this.configuration = configuration; |
110 this.utils = configuration.utils; |
110 this.utils = configuration.utils; |
|
111 |
|
112 Messages messages = configuration.getMessages(); |
|
113 messages.notice("doclet.Building_Tree"); |
|
114 |
111 comparator = utils.makeClassUseComparator(); |
115 comparator = utils.makeClassUseComparator(); |
112 baseAnnotationTypes = new TreeSet<>(comparator); |
116 baseAnnotationTypes = new TreeSet<>(comparator); |
113 baseEnums = new TreeSet<>(comparator); |
117 baseEnums = new TreeSet<>(comparator); |
114 baseClasses = new TreeSet<>(comparator); |
118 baseClasses = new TreeSet<>(comparator); |
115 baseInterfaces = new TreeSet<>(comparator); |
119 baseInterfaces = new TreeSet<>(comparator); |