}
}
}
}
public void acceptLocalMethod(MethodBinding methodBinding) {
IJavaElement res = findLocalElement(methodBinding.sourceStart());
if(res != null) {
if(res.getElementType() == IJavaElement.METHOD) {
IMethod method = (IMethod) res;
char[] uniqueKey = methodBinding.computeUniqueKey();
if(method.isBinary()) {
ResolvedBinaryMethod resolvedRes = new ResolvedBinaryMethod(
(JavaElement)res.getParent(),
method.getElementName(),
method.getParameterTypes(),
new String(uniqueKey));
resolvedRes.occurrenceCount = method.getOccurrenceCount();
res = resolvedRes;
} else {
ResolvedSourceMethod resolvedRes = new ResolvedSourceMethod(
(JavaElement)res.getParent(),
method.getElementName(),
method.getParameterTypes(),
new String(uniqueKey));
resolvedRes.occurrenceCount = method.getOccurrenceCount();
res = resolvedRes;
}
addElement(res);
if(SelectionEngine.DEBUG){
System.out.print("SELECTION - accept method("); //$NON-NLS-1$
System.out.print(res.toString());
System.out.println(")"); //$NON-NLS-1$
}
} else if(methodBinding.selector == TypeConstants.INIT && res.getElementType() == IJavaElement.TYPE) {
// it's a default constructor
res = ((JavaElement)res).resolved(methodBinding.declaringClass);
addElement(res);
if(SelectionEngine.DEBUG){
System.out.print("SELECTION - accept type("); //$NON-NLS-1$
System.out.print(res.toString());
System.out.println(")"); //$NON-NLS-1$
}
}
}
}