Logo Search packages:      
Sourcecode: visualvm version File versions  Download package

boolean org::netbeans::lib::profiler::classfile::DynamicClassInfo::implementsInterface ( String  intfName  )  [inline]

Note that this method uses the name of the interface in question intentionally - its (few) callers benefit from providing the name rather than a DynamicClassInfo.

Definition at line 397 of file DynamicClassInfo.java.

References org::netbeans::lib::profiler::classfile::BaseClassInfo::getName(), and implementsInterface().

Referenced by implementsInterface(), and org::netbeans::lib::profiler::instrumentation::RecursiveMethodInstrumentor1::tryInstrumentSpawnedThreads().

                                                        {
        int loaderId = getLoaderId();
        String[] intfs = getInterfaceNames();

        if (intfs != null) {
            for (int i = 0; i < intfs.length; i++) {
                if (intfName == intfs[i]) {
                    return true;
                }
            }

            DynamicClassInfo[] intfsDCI = getSuperInterfaces();

            if (intfsDCI != null) {
                for (int i = 0; i < intfsDCI.length; i++) {
                    DynamicClassInfo intfClazz = intfsDCI[i];

                    if ((intfClazz != null) && intfClazz.implementsInterface(intfName)) {
                        return true;
                    }
                }
            }
        }

        DynamicClassInfo superClass = getSuperClass();

        if ((superClass == null) || (superClass.getName() == "java/lang/Object")) {
            return false; // NOI18N
        }

        return superClass.implementsInterface(intfName);
    }


Generated by  Doxygen 1.6.0   Back to index