< prev index next >

src/hotspot/share/include/jvm.h

Print this page




 371 JNIEXPORT jclass JNICALL
 372 JVM_FindClassFromClass(JNIEnv *env, const char *name, jboolean init,
 373                              jclass from);
 374 
 375 /* Find a loaded class cached by the VM */
 376 JNIEXPORT jclass JNICALL
 377 JVM_FindLoadedClass(JNIEnv *env, jobject loader, jstring name);
 378 
 379 /* Define a class */
 380 JNIEXPORT jclass JNICALL
 381 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
 382                 jsize len, jobject pd);
 383 
 384 /* Define a class with a source (added in JDK1.5) */
 385 JNIEXPORT jclass JNICALL
 386 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
 387                           const jbyte *buf, jsize len, jobject pd,
 388                           const char *source);
 389 
 390 /*















 391  * Module support funcions
 392  */
 393 
 394 /*
 395  * Define a module with the specified packages and bind the module to the
 396  * given class loader.
 397  *  module:       module to define
 398  *  is_open:      specifies if module is open (currently ignored)
 399  *  version:      the module version
 400  *  location:     the module location
 401  *  packages:     list of packages in the module
 402  *  num_packages: number of packages in the module
 403  */
 404 JNIEXPORT void JNICALL
 405 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
 406                  jstring location, const char* const* packages, jsize num_packages);
 407 
 408 /*
 409  * Set the boot loader's unnamed module.
 410  *  module: boot loader's unnamed module




 371 JNIEXPORT jclass JNICALL
 372 JVM_FindClassFromClass(JNIEnv *env, const char *name, jboolean init,
 373                              jclass from);
 374 
 375 /* Find a loaded class cached by the VM */
 376 JNIEXPORT jclass JNICALL
 377 JVM_FindLoadedClass(JNIEnv *env, jobject loader, jstring name);
 378 
 379 /* Define a class */
 380 JNIEXPORT jclass JNICALL
 381 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
 382                 jsize len, jobject pd);
 383 
 384 /* Define a class with a source (added in JDK1.5) */
 385 JNIEXPORT jclass JNICALL
 386 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
 387                           const jbyte *buf, jsize len, jobject pd,
 388                           const char *source);
 389 
 390 /*
 391  * Define a class with the specified lookup class.
 392  *  lookup:  Lookup class
 393  *  name:    the name of the class
 394  *  loader:  defining class loader
 395  *  buf:     class bytes
 396  *  len:     length of class bytes
 397  *  pd:      protection domain
 398  *  flags:   properties of the class
 399  *  classData: private static pre-initialized field; may be null
 400  */
 401 JNIEXPORT jclass JNICALL
 402 JVM_LookupDefineClass(JNIEnv *env, jclass lookup, const char *name, jobject loader,
 403                       const jbyte *buf, jsize len, jobject pd, int flags, jobject classData);
 404 
 405 /*
 406  * Module support funcions
 407  */
 408 
 409 /*
 410  * Define a module with the specified packages and bind the module to the
 411  * given class loader.
 412  *  module:       module to define
 413  *  is_open:      specifies if module is open (currently ignored)
 414  *  version:      the module version
 415  *  location:     the module location
 416  *  packages:     list of packages in the module
 417  *  num_packages: number of packages in the module
 418  */
 419 JNIEXPORT void JNICALL
 420 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
 421                  jstring location, const char* const* packages, jsize num_packages);
 422 
 423 /*
 424  * Set the boot loader's unnamed module.
 425  *  module: boot loader's unnamed module


< prev index next >