1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
397 return null; |
397 return null; |
398 } |
398 } |
399 |
399 |
400 private MemberDoc findExecutableMember(String memName, String[] paramarr, |
400 private MemberDoc findExecutableMember(String memName, String[] paramarr, |
401 ClassDoc referencedClass) { |
401 ClassDoc referencedClass) { |
402 if (memName.equals(referencedClass.name())) { |
402 String className = referencedClass.name(); |
|
403 if (memName.equals(className.substring(className.lastIndexOf(".") + 1))) { |
403 return ((ClassDocImpl)referencedClass).findConstructor(memName, |
404 return ((ClassDocImpl)referencedClass).findConstructor(memName, |
404 paramarr); |
405 paramarr); |
405 } else { // it's a method. |
406 } else { // it's a method. |
406 return ((ClassDocImpl)referencedClass).findMethod(memName, |
407 return ((ClassDocImpl)referencedClass).findMethod(memName, |
407 paramarr); |
408 paramarr); |