final ReferenceBinding[] interfaces = referenceBinding.superInterfaces(); if (interfaces != null) { for (ReferenceBinding rb : interfaces) {
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { // use 'seen' to avoid duplicates, use result to maintain stable order int length = superInterfaces.length; for (int i=0; i<length; i++) { ReferenceBinding superInterface = superInterfaces[i]; if (seen.add(superInterface)) { result.add(superInterface); collectAllDistinctSuperInterfaces(superInterface.superInterfaces(), seen, result); } } }
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { // use 'seen' to avoid duplicates, use result to maintain stable order int length = superInterfaces.length; for (int i=0; i<length; i++) { ReferenceBinding superInterface = superInterfaces[i]; if (seen.add(superInterface)) { result.add(superInterface); collectAllDistinctSuperInterfaces(superInterface.superInterfaces(), seen, result); } } }
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { // use 'seen' to avoid duplicates, use result to maintain stable order int length = superInterfaces.length; for (int i=0; i<length; i++) { ReferenceBinding superInterface = superInterfaces[i]; if (seen.add(superInterface)) { result.add(superInterface); collectAllDistinctSuperInterfaces(superInterface.superInterfaces(), seen, result); } } }
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { // use 'seen' to avoid duplicates, use result to maintain stable order int length = superInterfaces.length; for (int i=0; i<length; i++) { ReferenceBinding superInterface = superInterfaces[i]; if (seen.add(superInterface)) { result.add(superInterface); collectAllDistinctSuperInterfaces(superInterface.superInterfaces(), seen, result); } } }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superInterfaces() */ public ReferenceBinding[] superInterfaces() { if (this.superInterfaces == null) { if (this.type.isHierarchyBeingConnected()) return Binding.NO_SUPERINTERFACES; // prevent superinterfaces from being assigned before they are connected this.superInterfaces = Scope.substitute(this, this.type.superInterfaces()); } return this.superInterfaces; }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superInterfaces() */ public ReferenceBinding[] superInterfaces() { if (this.superInterfaces == null) { if (this.type.isHierarchyBeingConnected()) return Binding.NO_SUPERINTERFACES; // prevent superinterfaces from being assigned before they are connected this.superInterfaces = Scope.substitute(this, this.type.superInterfaces()); } return this.superInterfaces; }
@NonNull @Override public PsiClassType[] getImplementsListTypes() { return mManager.findClassTypes(mTypeBinding.superInterfaces()); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#superInterfaces() */ public ReferenceBinding[] superInterfaces() { if (this.superInterfaces == null) { if (this.type.isHierarchyBeingConnected()) return Binding.NO_SUPERINTERFACES; // prevent superinterfaces from being assigned before they are connected this.superInterfaces = Scope.substitute(this, this.type.superInterfaces()); } return this.superInterfaces; }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
@NonNull @Override public PsiClass[] getSupers() { return mManager.findClasses(mTypeBinding.superclass(), mTypeBinding.superInterfaces()); }