equal
deleted
inserted
replaced
143 return allClasses; |
143 return allClasses; |
144 } |
144 } |
145 if (allClassesFiltered != null && filtered) { |
145 if (allClassesFiltered != null && filtered) { |
146 return allClassesFiltered; |
146 return allClassesFiltered; |
147 } |
147 } |
148 ListBuffer<ClassDocImpl> classes = new ListBuffer<ClassDocImpl>(); |
148 ListBuffer<ClassDocImpl> classes = new ListBuffer<>(); |
149 for (Scope.Entry e = sym.members().elems; e != null; e = e.sibling) { |
149 for (Scope.Entry e = sym.members().elems; e != null; e = e.sibling) { |
150 if (e.sym != null) { |
150 if (e.sym != null) { |
151 ClassSymbol s = (ClassSymbol)e.sym; |
151 ClassSymbol s = (ClassSymbol)e.sym; |
152 ClassDocImpl c = env.getClassDoc(s); |
152 ClassDocImpl c = env.getClassDoc(s); |
153 if (c != null && !c.isSynthetic()) |
153 if (c != null && !c.isSynthetic()) |
196 * enums, interfaces, and annotation types) in this package. |
196 * enums, interfaces, and annotation types) in this package. |
197 * |
197 * |
198 * @return included ordinary classes in this package. |
198 * @return included ordinary classes in this package. |
199 */ |
199 */ |
200 public ClassDoc[] ordinaryClasses() { |
200 public ClassDoc[] ordinaryClasses() { |
201 ListBuffer<ClassDocImpl> ret = new ListBuffer<ClassDocImpl>(); |
201 ListBuffer<ClassDocImpl> ret = new ListBuffer<>(); |
202 for (ClassDocImpl c : getClasses(true)) { |
202 for (ClassDocImpl c : getClasses(true)) { |
203 if (c.isOrdinaryClass()) { |
203 if (c.isOrdinaryClass()) { |
204 ret.append(c); |
204 ret.append(c); |
205 } |
205 } |
206 } |
206 } |
211 * Get Exception classes in this package. |
211 * Get Exception classes in this package. |
212 * |
212 * |
213 * @return included Exceptions in this package. |
213 * @return included Exceptions in this package. |
214 */ |
214 */ |
215 public ClassDoc[] exceptions() { |
215 public ClassDoc[] exceptions() { |
216 ListBuffer<ClassDocImpl> ret = new ListBuffer<ClassDocImpl>(); |
216 ListBuffer<ClassDocImpl> ret = new ListBuffer<>(); |
217 for (ClassDocImpl c : getClasses(true)) { |
217 for (ClassDocImpl c : getClasses(true)) { |
218 if (c.isException()) { |
218 if (c.isException()) { |
219 ret.append(c); |
219 ret.append(c); |
220 } |
220 } |
221 } |
221 } |
226 * Get Error classes in this package. |
226 * Get Error classes in this package. |
227 * |
227 * |
228 * @return included Errors in this package. |
228 * @return included Errors in this package. |
229 */ |
229 */ |
230 public ClassDoc[] errors() { |
230 public ClassDoc[] errors() { |
231 ListBuffer<ClassDocImpl> ret = new ListBuffer<ClassDocImpl>(); |
231 ListBuffer<ClassDocImpl> ret = new ListBuffer<>(); |
232 for (ClassDocImpl c : getClasses(true)) { |
232 for (ClassDocImpl c : getClasses(true)) { |
233 if (c.isError()) { |
233 if (c.isError()) { |
234 ret.append(c); |
234 ret.append(c); |
235 } |
235 } |
236 } |
236 } |
241 * Get included enum types in this package. |
241 * Get included enum types in this package. |
242 * |
242 * |
243 * @return included enum types in this package. |
243 * @return included enum types in this package. |
244 */ |
244 */ |
245 public ClassDoc[] enums() { |
245 public ClassDoc[] enums() { |
246 ListBuffer<ClassDocImpl> ret = new ListBuffer<ClassDocImpl>(); |
246 ListBuffer<ClassDocImpl> ret = new ListBuffer<>(); |
247 for (ClassDocImpl c : getClasses(true)) { |
247 for (ClassDocImpl c : getClasses(true)) { |
248 if (c.isEnum()) { |
248 if (c.isEnum()) { |
249 ret.append(c); |
249 ret.append(c); |
250 } |
250 } |
251 } |
251 } |
256 * Get included interfaces in this package, omitting annotation types. |
256 * Get included interfaces in this package, omitting annotation types. |
257 * |
257 * |
258 * @return included interfaces in this package. |
258 * @return included interfaces in this package. |
259 */ |
259 */ |
260 public ClassDoc[] interfaces() { |
260 public ClassDoc[] interfaces() { |
261 ListBuffer<ClassDocImpl> ret = new ListBuffer<ClassDocImpl>(); |
261 ListBuffer<ClassDocImpl> ret = new ListBuffer<>(); |
262 for (ClassDocImpl c : getClasses(true)) { |
262 for (ClassDocImpl c : getClasses(true)) { |
263 if (c.isInterface()) { |
263 if (c.isInterface()) { |
264 ret.append(c); |
264 ret.append(c); |
265 } |
265 } |
266 } |
266 } |
271 * Get included annotation types in this package. |
271 * Get included annotation types in this package. |
272 * |
272 * |
273 * @return included annotation types in this package. |
273 * @return included annotation types in this package. |
274 */ |
274 */ |
275 public AnnotationTypeDoc[] annotationTypes() { |
275 public AnnotationTypeDoc[] annotationTypes() { |
276 ListBuffer<AnnotationTypeDocImpl> ret = |
276 ListBuffer<AnnotationTypeDocImpl> ret = new ListBuffer<>(); |
277 new ListBuffer<AnnotationTypeDocImpl>(); |
|
278 for (ClassDocImpl c : getClasses(true)) { |
277 for (ClassDocImpl c : getClasses(true)) { |
279 if (c.isAnnotationType()) { |
278 if (c.isAnnotationType()) { |
280 ret.append((AnnotationTypeDocImpl)c); |
279 ret.append((AnnotationTypeDocImpl)c); |
281 } |
280 } |
282 } |
281 } |