< prev index next >

src/hotspot/share/include/jvm.h

Print this page




 500 
 501 JNIEXPORT jbyteArray JNICALL
 502 JVM_GetFieldTypeAnnotations(JNIEnv *env, jobject field);
 503 
 504 JNIEXPORT jbyteArray JNICALL
 505 JVM_GetMethodTypeAnnotations(JNIEnv *env, jobject method);
 506 
 507 /*
 508  * New (JDK 1.4) reflection implementation
 509  */
 510 
 511 JNIEXPORT jobjectArray JNICALL
 512 JVM_GetClassDeclaredMethods(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 513 
 514 JNIEXPORT jobjectArray JNICALL
 515 JVM_GetClassDeclaredFields(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 516 
 517 JNIEXPORT jobjectArray JNICALL
 518 JVM_GetClassDeclaredConstructors(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 519 






 520 /* Differs from JVM_GetClassModifiers in treatment of inner classes.
 521    This returns the access flags for the class as specified in the
 522    class file rather than searching the InnerClasses attribute (if
 523    present) to find the source-level access flags. Only the values of
 524    the low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be
 525    valid. */
 526 JNIEXPORT jint JNICALL
 527 JVM_GetClassAccessFlags(JNIEnv *env, jclass cls);
 528 
 529 /* Nestmates - since JDK 11 */
 530 
 531 JNIEXPORT jboolean JNICALL
 532 JVM_AreNestMates(JNIEnv *env, jclass current, jclass member);
 533 
 534 JNIEXPORT jclass JNICALL
 535 JVM_GetNestHost(JNIEnv *env, jclass current);
 536 
 537 JNIEXPORT jobjectArray JNICALL
 538 JVM_GetNestMembers(JNIEnv *env, jclass current);



 539 
 540 /* The following two reflection routines are still needed due to startup time issues */
 541 /*
 542  * java.lang.reflect.Method
 543  */
 544 JNIEXPORT jobject JNICALL
 545 JVM_InvokeMethod(JNIEnv *env, jobject method, jobject obj, jobjectArray args0);
 546 
 547 /*
 548  * java.lang.reflect.Constructor
 549  */
 550 JNIEXPORT jobject JNICALL
 551 JVM_NewInstanceFromConstructor(JNIEnv *env, jobject c, jobjectArray args0);
 552 
 553 /*
 554  * Constant pool access; currently used to implement reflective access to annotations (JDK 1.5)
 555  */
 556 
 557 JNIEXPORT jobject JNICALL
 558 JVM_GetClassConstantPool(JNIEnv *env, jclass cls);




 500 
 501 JNIEXPORT jbyteArray JNICALL
 502 JVM_GetFieldTypeAnnotations(JNIEnv *env, jobject field);
 503 
 504 JNIEXPORT jbyteArray JNICALL
 505 JVM_GetMethodTypeAnnotations(JNIEnv *env, jobject method);
 506 
 507 /*
 508  * New (JDK 1.4) reflection implementation
 509  */
 510 
 511 JNIEXPORT jobjectArray JNICALL
 512 JVM_GetClassDeclaredMethods(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 513 
 514 JNIEXPORT jobjectArray JNICALL
 515 JVM_GetClassDeclaredFields(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 516 
 517 JNIEXPORT jobjectArray JNICALL
 518 JVM_GetClassDeclaredConstructors(JNIEnv *env, jclass ofClass, jboolean publicOnly);
 519 
 520 JNIEXPORT jobjectArray JNICALL
 521 JVM_GetRecordComponentNames(JNIEnv *env, jclass ofClass);
 522 
 523 JNIEXPORT jboolean JNICALL
 524 JVM_IsRecord(JNIEnv *env, jclass cls);
 525 
 526 /* Differs from JVM_GetClassModifiers in treatment of inner classes.
 527    This returns the access flags for the class as specified in the
 528    class file rather than searching the InnerClasses attribute (if
 529    present) to find the source-level access flags. Only the values of
 530    the low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be
 531    valid. */
 532 JNIEXPORT jint JNICALL
 533 JVM_GetClassAccessFlags(JNIEnv *env, jclass cls);
 534 
 535 /* Nestmates - since JDK 11 */
 536 
 537 JNIEXPORT jboolean JNICALL
 538 JVM_AreNestMates(JNIEnv *env, jclass current, jclass member);
 539 
 540 JNIEXPORT jclass JNICALL
 541 JVM_GetNestHost(JNIEnv *env, jclass current);
 542 
 543 JNIEXPORT jobjectArray JNICALL
 544 JVM_GetNestMembers(JNIEnv *env, jclass current);
 545 
 546 JNIEXPORT jobjectArray JNICALL
 547 JVM_GetPermittedSubtypes(JNIEnv *env, jclass current);
 548 
 549 /* The following two reflection routines are still needed due to startup time issues */
 550 /*
 551  * java.lang.reflect.Method
 552  */
 553 JNIEXPORT jobject JNICALL
 554 JVM_InvokeMethod(JNIEnv *env, jobject method, jobject obj, jobjectArray args0);
 555 
 556 /*
 557  * java.lang.reflect.Constructor
 558  */
 559 JNIEXPORT jobject JNICALL
 560 JVM_NewInstanceFromConstructor(JNIEnv *env, jobject c, jobjectArray args0);
 561 
 562 /*
 563  * Constant pool access; currently used to implement reflective access to annotations (JDK 1.5)
 564  */
 565 
 566 JNIEXPORT jobject JNICALL
 567 JVM_GetClassConstantPool(JNIEnv *env, jclass cls);


< prev index next >