46 |
46 |
47 /** |
47 /** |
48 * Mapping of ClassDocs to set of PackageDoc used by that class. |
48 * Mapping of ClassDocs to set of PackageDoc used by that class. |
49 * Entries may be null. |
49 * Entries may be null. |
50 */ |
50 */ |
51 public Map<String,Set<PackageDoc>> classToPackage = new HashMap<String,Set<PackageDoc>>(); |
51 public Map<String,Set<PackageDoc>> classToPackage = new HashMap<>(); |
52 |
52 |
53 /** |
53 /** |
54 * Mapping of Annotations to set of PackageDoc that use the annotation. |
54 * Mapping of Annotations to set of PackageDoc that use the annotation. |
55 */ |
55 */ |
56 public Map<String,List<PackageDoc>> classToPackageAnnotations = new HashMap<String,List<PackageDoc>>(); |
56 public Map<String,List<PackageDoc>> classToPackageAnnotations = new HashMap<>(); |
57 |
57 |
58 /** |
58 /** |
59 * Mapping of ClassDocs to set of ClassDoc used by that class. |
59 * Mapping of ClassDocs to set of ClassDoc used by that class. |
60 * Entries may be null. |
60 * Entries may be null. |
61 */ |
61 */ |
62 public Map<String,Set<ClassDoc>> classToClass = new HashMap<String,Set<ClassDoc>>(); |
62 public Map<String,Set<ClassDoc>> classToClass = new HashMap<>(); |
63 |
63 |
64 /** |
64 /** |
65 * Mapping of ClassDocs to list of ClassDoc which are direct or |
65 * Mapping of ClassDocs to list of ClassDoc which are direct or |
66 * indirect subclasses of that class. |
66 * indirect subclasses of that class. |
67 * Entries may be null. |
67 * Entries may be null. |
68 */ |
68 */ |
69 public Map<String,List<ClassDoc>> classToSubclass = new HashMap<String,List<ClassDoc>>(); |
69 public Map<String,List<ClassDoc>> classToSubclass = new HashMap<>(); |
70 |
70 |
71 /** |
71 /** |
72 * Mapping of ClassDocs to list of ClassDoc which are direct or |
72 * Mapping of ClassDocs to list of ClassDoc which are direct or |
73 * indirect subinterfaces of that interface. |
73 * indirect subinterfaces of that interface. |
74 * Entries may be null. |
74 * Entries may be null. |
75 */ |
75 */ |
76 public Map<String,List<ClassDoc>> classToSubinterface = new HashMap<String,List<ClassDoc>>(); |
76 public Map<String,List<ClassDoc>> classToSubinterface = new HashMap<>(); |
77 |
77 |
78 /** |
78 /** |
79 * Mapping of ClassDocs to list of ClassDoc which implement |
79 * Mapping of ClassDocs to list of ClassDoc which implement |
80 * this interface. |
80 * this interface. |
81 * Entries may be null. |
81 * Entries may be null. |
82 */ |
82 */ |
83 public Map<String,List<ClassDoc>> classToImplementingClass = new HashMap<String,List<ClassDoc>>(); |
83 public Map<String,List<ClassDoc>> classToImplementingClass = new HashMap<>(); |
84 |
84 |
85 /** |
85 /** |
86 * Mapping of ClassDocs to list of FieldDoc declared as that class. |
86 * Mapping of ClassDocs to list of FieldDoc declared as that class. |
87 * Entries may be null. |
87 * Entries may be null. |
88 */ |
88 */ |
89 public Map<String,List<FieldDoc>> classToField = new HashMap<String,List<FieldDoc>>(); |
89 public Map<String,List<FieldDoc>> classToField = new HashMap<>(); |
90 |
90 |
91 /** |
91 /** |
92 * Mapping of ClassDocs to list of MethodDoc returning that class. |
92 * Mapping of ClassDocs to list of MethodDoc returning that class. |
93 * Entries may be null. |
93 * Entries may be null. |
94 */ |
94 */ |
95 public Map<String,List<MethodDoc>> classToMethodReturn = new HashMap<String,List<MethodDoc>>(); |
95 public Map<String,List<MethodDoc>> classToMethodReturn = new HashMap<>(); |
96 |
96 |
97 /** |
97 /** |
98 * Mapping of ClassDocs to list of MethodDoc having that class |
98 * Mapping of ClassDocs to list of MethodDoc having that class |
99 * as an arg. |
99 * as an arg. |
100 * Entries may be null. |
100 * Entries may be null. |
101 */ |
101 */ |
102 public Map<String,List<ExecutableMemberDoc>> classToMethodArgs = new HashMap<String,List<ExecutableMemberDoc>>(); |
102 public Map<String,List<ExecutableMemberDoc>> classToMethodArgs = new HashMap<>(); |
103 |
103 |
104 /** |
104 /** |
105 * Mapping of ClassDocs to list of MethodDoc which throws that class. |
105 * Mapping of ClassDocs to list of MethodDoc which throws that class. |
106 * Entries may be null. |
106 * Entries may be null. |
107 */ |
107 */ |
108 public Map<String,List<ExecutableMemberDoc>> classToMethodThrows = new HashMap<String,List<ExecutableMemberDoc>>(); |
108 public Map<String,List<ExecutableMemberDoc>> classToMethodThrows = new HashMap<>(); |
109 |
109 |
110 /** |
110 /** |
111 * Mapping of ClassDocs to list of ConstructorDoc having that class |
111 * Mapping of ClassDocs to list of ConstructorDoc having that class |
112 * as an arg. |
112 * as an arg. |
113 * Entries may be null. |
113 * Entries may be null. |
114 */ |
114 */ |
115 public Map<String,List<ExecutableMemberDoc>> classToConstructorArgs = new HashMap<String,List<ExecutableMemberDoc>>(); |
115 public Map<String,List<ExecutableMemberDoc>> classToConstructorArgs = new HashMap<>(); |
116 |
116 |
117 /** |
117 /** |
118 * Mapping of ClassDocs to list of ConstructorDoc which throws that class. |
118 * Mapping of ClassDocs to list of ConstructorDoc which throws that class. |
119 * Entries may be null. |
119 * Entries may be null. |
120 */ |
120 */ |
121 public Map<String,List<ExecutableMemberDoc>> classToConstructorThrows = new HashMap<String,List<ExecutableMemberDoc>>(); |
121 public Map<String,List<ExecutableMemberDoc>> classToConstructorThrows = new HashMap<>(); |
122 |
122 |
123 /** |
123 /** |
124 * The mapping of AnnotationTypeDocs to constructors that use them. |
124 * The mapping of AnnotationTypeDocs to constructors that use them. |
125 */ |
125 */ |
126 public Map<String,List<ConstructorDoc>> classToConstructorAnnotations = new HashMap<String,List<ConstructorDoc>>(); |
126 public Map<String,List<ConstructorDoc>> classToConstructorAnnotations = new HashMap<>(); |
127 |
127 |
128 /** |
128 /** |
129 * The mapping of AnnotationTypeDocs to Constructor parameters that use them. |
129 * The mapping of AnnotationTypeDocs to Constructor parameters that use them. |
130 */ |
130 */ |
131 public Map<String,List<ExecutableMemberDoc>> classToConstructorParamAnnotation = new HashMap<String,List<ExecutableMemberDoc>>(); |
131 public Map<String,List<ExecutableMemberDoc>> classToConstructorParamAnnotation = new HashMap<>(); |
132 |
132 |
133 /** |
133 /** |
134 * The mapping of ClassDocs to Constructor arguments that use them as type parameters. |
134 * The mapping of ClassDocs to Constructor arguments that use them as type parameters. |
135 */ |
135 */ |
136 public Map<String,List<ExecutableMemberDoc>> classToConstructorDocArgTypeParam = new HashMap<String,List<ExecutableMemberDoc>>(); |
136 public Map<String,List<ExecutableMemberDoc>> classToConstructorDocArgTypeParam = new HashMap<>(); |
137 |
137 |
138 /** |
138 /** |
139 * The mapping of ClassDocs to ClassDocs that use them as type parameters. |
139 * The mapping of ClassDocs to ClassDocs that use them as type parameters. |
140 */ |
140 */ |
141 public Map<String,List<ClassDoc>> classToClassTypeParam = new HashMap<String,List<ClassDoc>>(); |
141 public Map<String,List<ClassDoc>> classToClassTypeParam = new HashMap<>(); |
142 |
142 |
143 /** |
143 /** |
144 * The mapping of AnnotationTypeDocs to ClassDocs that use them. |
144 * The mapping of AnnotationTypeDocs to ClassDocs that use them. |
145 */ |
145 */ |
146 public Map<String,List<ClassDoc>> classToClassAnnotations = new HashMap<String,List<ClassDoc>>(); |
146 public Map<String,List<ClassDoc>> classToClassAnnotations = new HashMap<>(); |
147 |
147 |
148 /** |
148 /** |
149 * The mapping of ClassDocs to ExecutableMemberDocs that use them as type parameters. |
149 * The mapping of ClassDocs to ExecutableMemberDocs that use them as type parameters. |
150 */ |
150 */ |
151 public Map<String,List<MethodDoc>> classToExecMemberDocTypeParam = new HashMap<String,List<MethodDoc>>(); |
151 public Map<String,List<MethodDoc>> classToExecMemberDocTypeParam = new HashMap<>(); |
152 |
152 |
153 /** |
153 /** |
154 * The mapping of ClassDocs to ExecutableMemberDocs arguments that use them as type parameters. |
154 * The mapping of ClassDocs to ExecutableMemberDocs arguments that use them as type parameters. |
155 */ |
155 */ |
156 public Map<String,List<ExecutableMemberDoc>> classToExecMemberDocArgTypeParam = new HashMap<String,List<ExecutableMemberDoc>>(); |
156 public Map<String,List<ExecutableMemberDoc>> classToExecMemberDocArgTypeParam = new HashMap<>(); |
157 |
157 |
158 /** |
158 /** |
159 * The mapping of AnnotationTypeDocs to ExecutableMemberDocs that use them. |
159 * The mapping of AnnotationTypeDocs to ExecutableMemberDocs that use them. |
160 */ |
160 */ |
161 public Map<String,List<MethodDoc>> classToExecMemberDocAnnotations = new HashMap<String,List<MethodDoc>>(); |
161 public Map<String,List<MethodDoc>> classToExecMemberDocAnnotations = new HashMap<>(); |
162 |
162 |
163 /** |
163 /** |
164 * The mapping of ClassDocs to ExecutableMemberDocs that have return type |
164 * The mapping of ClassDocs to ExecutableMemberDocs that have return type |
165 * with type parameters of that class. |
165 * with type parameters of that class. |
166 */ |
166 */ |
167 public Map<String,List<MethodDoc>> classToExecMemberDocReturnTypeParam = new HashMap<String,List<MethodDoc>>(); |
167 public Map<String,List<MethodDoc>> classToExecMemberDocReturnTypeParam = new HashMap<>(); |
168 |
168 |
169 /** |
169 /** |
170 * The mapping of AnnotationTypeDocs to MethodDoc parameters that use them. |
170 * The mapping of AnnotationTypeDocs to MethodDoc parameters that use them. |
171 */ |
171 */ |
172 public Map<String,List<ExecutableMemberDoc>> classToExecMemberDocParamAnnotation = new HashMap<String,List<ExecutableMemberDoc>>(); |
172 public Map<String,List<ExecutableMemberDoc>> classToExecMemberDocParamAnnotation = new HashMap<>(); |
173 |
173 |
174 /** |
174 /** |
175 * The mapping of ClassDocs to FieldDocs that use them as type parameters. |
175 * The mapping of ClassDocs to FieldDocs that use them as type parameters. |
176 */ |
176 */ |
177 public Map<String,List<FieldDoc>> classToFieldDocTypeParam = new HashMap<String,List<FieldDoc>>(); |
177 public Map<String,List<FieldDoc>> classToFieldDocTypeParam = new HashMap<>(); |
178 |
178 |
179 /** |
179 /** |
180 * The mapping of AnnotationTypeDocs to FieldDocs that use them. |
180 * The mapping of AnnotationTypeDocs to FieldDocs that use them. |
181 */ |
181 */ |
182 public Map<String,List<FieldDoc>> annotationToFieldDoc = new HashMap<String,List<FieldDoc>>(); |
182 public Map<String,List<FieldDoc>> annotationToFieldDoc = new HashMap<>(); |
183 |
183 |
184 |
184 |
185 public ClassUseMapper(RootDoc root, ClassTree classtree) { |
185 public ClassUseMapper(RootDoc root, ClassTree classtree) { |
186 this.classtree = classtree; |
186 this.classtree = classtree; |
187 |
187 |