317 /* 318 * Find a class from a boot class loader. Returns NULL if class not found. 319 */ 320 JNIEXPORT jclass JNICALL 321 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name); 322 323 /* 324 * Find a class from a given class loader. Throws ClassNotFoundException. 325 * name: name of class 326 * init: whether initialization is done 327 * loader: class loader to look up the class. This may not be the same as the caller's 328 * class loader. 329 * caller: initiating class. The initiating class may be null when a security 330 * manager is not installed. 331 */ 332 JNIEXPORT jclass JNICALL 333 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init, 334 jobject loader, jclass caller); 335 336 /* 337 * Find a class from a given class loader. Throw ClassNotFoundException 338 * or NoClassDefFoundError depending on the value of the last 339 * argument. 340 */ 341 JNIEXPORT jclass JNICALL 342 JVM_FindClassFromClassLoader(JNIEnv *env, const char *name, jboolean init, 343 jobject loader, jboolean throwError); 344 345 /* 346 * Find a class from a given class. 347 */ 348 JNIEXPORT jclass JNICALL 349 JVM_FindClassFromClass(JNIEnv *env, const char *name, jboolean init, 350 jclass from); 351 352 /* Find a loaded class cached by the VM */ 353 JNIEXPORT jclass JNICALL 354 JVM_FindLoadedClass(JNIEnv *env, jobject loader, jstring name); 355 356 /* Define a class */ 357 JNIEXPORT jclass JNICALL 358 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf, 359 jsize len, jobject pd); 360 361 /* Define a class with a source (added in JDK1.5) */ 362 JNIEXPORT jclass JNICALL 363 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader, 364 const jbyte *buf, jsize len, jobject pd, 365 const char *source); | 317 /* 318 * Find a class from a boot class loader. Returns NULL if class not found. 319 */ 320 JNIEXPORT jclass JNICALL 321 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name); 322 323 /* 324 * Find a class from a given class loader. Throws ClassNotFoundException. 325 * name: name of class 326 * init: whether initialization is done 327 * loader: class loader to look up the class. This may not be the same as the caller's 328 * class loader. 329 * caller: initiating class. The initiating class may be null when a security 330 * manager is not installed. 331 */ 332 JNIEXPORT jclass JNICALL 333 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init, 334 jobject loader, jclass caller); 335 336 /* 337 * Find a class from a given class. 338 */ 339 JNIEXPORT jclass JNICALL 340 JVM_FindClassFromClass(JNIEnv *env, const char *name, jboolean init, 341 jclass from); 342 343 /* Find a loaded class cached by the VM */ 344 JNIEXPORT jclass JNICALL 345 JVM_FindLoadedClass(JNIEnv *env, jobject loader, jstring name); 346 347 /* Define a class */ 348 JNIEXPORT jclass JNICALL 349 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf, 350 jsize len, jobject pd); 351 352 /* Define a class with a source (added in JDK1.5) */ 353 JNIEXPORT jclass JNICALL 354 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader, 355 const jbyte *buf, jsize len, jobject pd, 356 const char *source); |