/** * Test whether this standard class implements the named interface, or by one of its superclasses. * * @param interfaceName * The name of the interface. * @return true this class is a standard class, and it (or one of its superclasses) implements the named * interface. */ public boolean implementsInterface(final String interfaceName) { return getNamesOfImplementedInterfaces().contains(interfaceName); }
classInfo == null ? Collections.emptyList() : classInfo.getNamesOfImplementedInterfaces(); Iterator<String> iterator = interfaces.iterator(); if (interfaces != null && interfaces.size() > 0) {