266 String t2 = getTypeName(v2.asType(), true);
267 if (!(t1.equals(t2) ||
268 isTypeVariable(v1.asType()) || isTypeVariable(v2.asType()))) {
269 break;
270 }
271 }
272 if (j == parameters1.size()) {
273 return true;
274 }
275 }
276 return false;
277 } else {
278 return elementUtils.overrides(e1, e2, getEnclosingTypeElement(e1)) ||
279 elementUtils.overrides(e2, e1, getEnclosingTypeElement(e2)) ||
280 e1.equals(e2);
281 }
282 }
283
284 /**
285 * According to
286 * <cite>The Java™ Language Specification</cite>,
287 * all the outer classes and static inner classes are core classes.
288 */
289 public boolean isCoreClass(TypeElement e) {
290 return getEnclosingTypeElement(e) == null || isStatic(e);
291 }
292
293 public Location getLocationForPackage(PackageElement pd) {
294 ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(pd);
295
296 if (mdle == null)
297 return defaultLocation();
298
299 return getLocationForModule(mdle);
300 }
301
302 public Location getLocationForModule(ModuleElement mdle) {
303 Location loc = configuration.workArounds.getLocationForModule(mdle);
304 if (loc != null)
305 return loc;
306
|
266 String t2 = getTypeName(v2.asType(), true);
267 if (!(t1.equals(t2) ||
268 isTypeVariable(v1.asType()) || isTypeVariable(v2.asType()))) {
269 break;
270 }
271 }
272 if (j == parameters1.size()) {
273 return true;
274 }
275 }
276 return false;
277 } else {
278 return elementUtils.overrides(e1, e2, getEnclosingTypeElement(e1)) ||
279 elementUtils.overrides(e2, e1, getEnclosingTypeElement(e2)) ||
280 e1.equals(e2);
281 }
282 }
283
284 /**
285 * According to
286 * <cite>The Java Language Specification</cite>,
287 * all the outer classes and static inner classes are core classes.
288 */
289 public boolean isCoreClass(TypeElement e) {
290 return getEnclosingTypeElement(e) == null || isStatic(e);
291 }
292
293 public Location getLocationForPackage(PackageElement pd) {
294 ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(pd);
295
296 if (mdle == null)
297 return defaultLocation();
298
299 return getLocationForModule(mdle);
300 }
301
302 public Location getLocationForModule(ModuleElement mdle) {
303 Location loc = configuration.workArounds.getLocationForModule(mdle);
304 if (loc != null)
305 return loc;
306
|