This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Set<ElementHandle<TypeElement>> allImplementors = new HashSet<ElementHandle<TypeElement>>();
Set<ElementHandle<TypeElement>> implementors = controller.getClasspathInfo().getClassIndex().getElements(ElementHandle.create(superElement), kind, scope);
do {
Set<ElementHandle<TypeElement>> tmpImplementors = new HashSet<ElementHandle<TypeElement>>();
allImplementors.addAll(implementors);
}
try {
controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
// process all methods from the implementor
for (ExecutableElement method : ElementFilter.methodsIn(type.getEnclosedElements())) {
//for (ExecutableElement method : ElementFilter.methodsIn( controller.getElements().getAllMembers(type))) {
if ((method.getKind() == ElementKind.METHOD) && !method.getModifiers().contains(Modifier.ABSTRACT)) {
if ((inclusive && restrictors.contains(method.getSimpleName().toString())) || (!inclusive && !restrictors.contains(method.getSimpleName().toString()))) {