1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import java.util.Iterator ; 22 import org.netbeans.jmi.javamodel.ClassDefinition; 23 import org.netbeans.jmi.javamodel.JavaClass; 24 import org.openide.util.Utilities; 25 26 30 class ImplementorsCollection extends SubClassesCollection { 31 public ImplementorsCollection(JavaClass superInterface, boolean deterministicProgress) { 32 super(superInterface, deterministicProgress); 33 } 34 35 protected boolean acceptClass(ClassDefinition cls) { 36 for (Iterator it = cls.getInterfaces().iterator(); it.hasNext();) { 37 if (Utilities.compareObjects(superClass.getName(), getName(ClassDefinitionImpl.getRealClassDefinition((ClassDefinition) it.next())))) { 38 return true; 39 } 40 } 41 return false; 42 } 43 } 44 | Popular Tags |