private static IMethod findIncludingSupertypes(IMethodBinding method, IType type, IProgressMonitor pm) throws JavaModelException { IMethod inThisType= Bindings.findMethod(method, type); if (inThisType != null) return inThisType; IType[] superTypes= JavaModelUtil.getAllSuperTypes(type, pm); for (int i= 0; i < superTypes.length; i++) { IMethod m= Bindings.findMethod(method, superTypes[i]); if (m != null) return m; } return null; }
private static IMethod findIncludingSupertypes(IMethodBinding method, IType type, IProgressMonitor pm) throws JavaModelException { IMethod inThisType= Bindings.findMethod(method, type); if (inThisType != null) return inThisType; IType[] superTypes= JavaModelUtil.getAllSuperTypes(type, pm); for (int i= 0; i < superTypes.length; i++) { IMethod m= Bindings.findMethod(method, superTypes[i]); if (m != null) return m; } return null; }
private static IMethod findIncludingSupertypes(IMethodBinding method, IType type, IProgressMonitor pm) throws JavaModelException { IMethod inThisType= Bindings.findMethod(method, type); if (inThisType != null) return inThisType; IType[] superTypes= JavaModelUtil.getAllSuperTypes(type, pm); for (int i= 0; i < superTypes.length; i++) { IMethod m= Bindings.findMethod(method, superTypes[i]); if (m != null) return m; } return null; }
private IMethod getMethod(IMethodBinding calledMethodBinding) throws JavaModelException { if (calledMethodBinding == null) { return null; } ITypeBinding calledTypeBinding = calledMethodBinding.getDeclaringClass(); IType calledType = (IType) calledTypeBinding.getJavaElement(); return Bindings.findMethod(calledMethodBinding, calledType); }