Iterator i = repository.getProgramClasses().iterator(); Set overridedMethods = new HashSet(); while (i.hasNext()) { Class baseClass = repository.loadClass((String) i.next(), true); JavaClass[] classes = repository.findClass(baseClass.getName()) .getSuperClasses(); for (int j = 0; j < classes.length; j++) { Class superClass = (Class) abstractClasses.get(classes[j] .getClassName()); if (superClass != null) { overridedMethods.addAll(superClass .getOverridedMethods(baseClass.getMethods())); } } } abstractClasses.clear(); return overridedMethods; }
Iterator i = repository.getProgramClasses().iterator(); Set overridedMethods = new HashSet(); while (i.hasNext()) { Class baseClass = repository.loadClass((String) i.next(), true); JavaClass[] classes = repository.findClass(baseClass.getName()).getSuperClasses(); overridedMethods.addAll(this.getOverridedMethods(baseClass, classes)); classes = repository.findClass(baseClass.getName()).getAllInterfaces(); overridedMethods.addAll(this.getOverridedMethods(baseClass, classes)); } abstractClasses.clear(); return overridedMethods; }
    private Set analiseAbstractMethods() throws ClassNotFoundException {        Iterator i = repository.getProgramClasses().iterator();        Set overridedMethods = new HashSet();        while (i.hasNext()) {            Class baseClass = repository.loadClass((String) i.next(), true);            JavaClass[] classes = repository.findClass(baseClass.getName())                    .getSuperClasses();            for (int j = 0; j < classes.length; j++) {                Class superClass = (Class) abstractClasses.get(classes[j]                        .getClassName());                if (superClass != null) {                    overridedMethods.addAll(superClass                            .getOverridedMethods(baseClass.getMethods()));                }            }        }        abstractClasses.clear();        return overridedMethods;    }