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

static DynamicClassInfo org::netbeans::lib::profiler::instrumentation::ClassManager::javaClassForName ( String  className,
int  classLoaderId 
) [inline, static, protected, inherited]

Returns a ClassInfo for a given non-array class name. If actualCPLength >= 0 is provided, the constant pool length in the returned ClassInfo is set to that value. Otherwise it is not touched, i.e. remains the same as for the .class file on the CLASSPATH.

Definition at line 193 of file ClassManager.java.

Referenced by org::netbeans::lib::profiler::instrumentation::RecursiveMethodInstrumentor::createInstrumentedMethodPack15(), org::netbeans::lib::profiler::instrumentation::MemoryProfMethodInstrumentor::findAndMarkMethodsToInstrumentInClass(), getInitialMethodsToInstrument(), org::netbeans::lib::profiler::instrumentation::RecursiveMethodInstrumentor2::getInitialMethodsToInstrument(), and org::netbeans::lib::profiler::instrumentation::RecursiveMethodInstrumentor1::getInitialMethodsToInstrument().

                                                                                            {
        try {
            return ClassRepository.lookupClass(className, classLoaderId);
        } catch (IOException ex2) {
            MiscUtils.printWarningMessage("Error reading class " + className); // NOI18N
            MiscUtils.printWarningMessage(ex2.getMessage());
        } catch (ClassFormatError er) {
            MiscUtils.printWarningMessage(er.getMessage());
        }

        return null;
    }


Generated by  Doxygen 1.6.0   Back to index