Lines 7089-7099
Link Here
|
7089 |
if(proposeMethod && !insideAnnotationAttribute) { |
7089 |
if(proposeMethod && !insideAnnotationAttribute) { |
7090 |
MethodBinding methodBinding = (MethodBinding)binding; |
7090 |
MethodBinding methodBinding = (MethodBinding)binding; |
7091 |
if ((exactMatch && CharOperation.equals(token, methodBinding.selector)) || |
7091 |
if ((exactMatch && CharOperation.equals(token, methodBinding.selector)) || |
7092 |
!exactMatch && CharOperation.prefixEquals(token, methodBinding.selector)) { |
7092 |
!exactMatch && CharOperation.prefixEquals(token, methodBinding.selector) || |
7093 |
|
7093 |
(this.options.camelCaseMatch && CharOperation.camelCaseMatch(token, methodBinding.selector))) { |
7094 |
findLocalMethodsFromStaticImports( |
7094 |
findLocalMethodsFromStaticImports( |
7095 |
methodBinding.selector, |
7095 |
token, |
7096 |
methodBinding.declaringClass.methods(), |
7096 |
methodBinding.declaringClass.getMethods(methodBinding.selector), |
7097 |
scope, |
7097 |
scope, |
7098 |
exactMatch, |
7098 |
exactMatch, |
7099 |
methodsFound, |
7099 |
methodsFound, |
Lines 8704-8710
Link Here
|
8704 |
} |
8704 |
} |
8705 |
} |
8705 |
} |
8706 |
|
8706 |
|
8707 |
// Helper method for findMethods(char[], TypeBinding[], ReferenceBinding, Scope, ObjectVector, boolean, boolean, boolean) |
8707 |
/** |
|
|
8708 |
* Helper method for findMethods(char[], TypeBinding[], ReferenceBinding, Scope, ObjectVector, boolean, boolean, boolean) |
8709 |
* Note that the method doesn't do a comparison of the method names and expects the client to handle the same. |
8710 |
* |
8711 |
* @methodName method as entered by the user, the one to completed |
8712 |
* @param methods a resultant array of MethodBinding, whose names should match methodName. The calling client must ensure that this check is handled. |
8713 |
*/ |
8708 |
private void findLocalMethodsFromStaticImports( |
8714 |
private void findLocalMethodsFromStaticImports( |
8709 |
char[] methodName, |
8715 |
char[] methodName, |
8710 |
MethodBinding[] methods, |
8716 |
MethodBinding[] methods, |
Lines 8735-8744
Link Here
|
8735 |
if (this.options.checkVisibility |
8741 |
if (this.options.checkVisibility |
8736 |
&& !method.canBeSeenBy(receiverType, invocationSite, scope)) continue next; |
8742 |
&& !method.canBeSeenBy(receiverType, invocationSite, scope)) continue next; |
8737 |
|
8743 |
|
8738 |
if (!CharOperation.equals(methodName, method.selector, false /* ignore case */) |
|
|
8739 |
&& !(this.options.camelCaseMatch && CharOperation.camelCaseMatch(methodName, method.selector))) |
8740 |
continue next; |
8741 |
|
8742 |
for (int i = methodsFound.size; --i >= 0;) { |
8744 |
for (int i = methodsFound.size; --i >= 0;) { |
8743 |
Object[] other = (Object[]) methodsFound.elementAt(i); |
8745 |
Object[] other = (Object[]) methodsFound.elementAt(i); |
8744 |
MethodBinding otherMethod = (MethodBinding) other[0]; |
8746 |
MethodBinding otherMethod = (MethodBinding) other[0]; |