154 JVM_LoadZipLibrary();
155
156 JNIEXPORT void * JNICALL
157 JVM_LoadLibrary(const char *name, jboolean throwException);
158
159 JNIEXPORT void JNICALL
160 JVM_UnloadLibrary(void * handle);
161
162 JNIEXPORT void * JNICALL
163 JVM_FindLibraryEntry(void *handle, const char *name);
164
165 JNIEXPORT jboolean JNICALL
166 JVM_IsSupportedJNIVersion(jint version);
167
168 JNIEXPORT jobjectArray JNICALL
169 JVM_GetVmArguments(JNIEnv *env);
170
171 JNIEXPORT jboolean JNICALL
172 JVM_IsPreviewEnabled(void);
173
174 JNIEXPORT jboolean JNICALL
175 JVM_IsContinuationsSupported(void);
176
177 JNIEXPORT jboolean JNICALL
178 JVM_IsForeignLinkerSupported(void);
179
180 JNIEXPORT void JNICALL
181 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
182
183 JNIEXPORT void JNICALL
184 JVM_RegisterLambdaProxyClassForArchiving(JNIEnv* env, jclass caller,
185 jstring interfaceMethodName,
186 jobject factoryType,
187 jobject interfaceMethodType,
188 jobject implementationMember,
189 jobject dynamicMethodType,
190 jclass lambdaProxyClass);
191
192 JNIEXPORT jclass JNICALL
193 JVM_LookupLambdaProxyClassFromArchive(JNIEnv* env, jclass caller,
403 * JVM_GetCallerClass. The Method.invoke and other frames due to
404 * reflection machinery are skipped.
405 *
406 * The caller is expected to be marked with
407 * jdk.internal.reflect.CallerSensitive. The JVM will throw an
408 * error if it is not marked properly.
409 */
410 JNIEXPORT jclass JNICALL
411 JVM_GetCallerClass(JNIEnv *env);
412
413
414 /*
415 * Find primitive classes
416 * utf: class name
417 */
418 JNIEXPORT jclass JNICALL
419 JVM_FindPrimitiveClass(JNIEnv *env, const char *utf);
420
421
422 /*
423 * Find a class from a boot class loader. Returns NULL if class not found.
424 */
425 JNIEXPORT jclass JNICALL
426 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
427
428 /*
429 * Find a class from a given class loader. Throws ClassNotFoundException.
430 * name: name of class
431 * init: whether initialization is done
432 * loader: class loader to look up the class. This may not be the same as the caller's
433 * class loader.
434 * caller: initiating class. The initiating class may be null when a security
435 * manager is not installed.
436 */
437 JNIEXPORT jclass JNICALL
438 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
439 jobject loader, jclass caller);
440
441 /*
442 * Find a class from a given class.
443 */
554 JVM_IsInterface(JNIEnv *env, jclass cls);
555
556 JNIEXPORT jobjectArray JNICALL
557 JVM_GetClassSigners(JNIEnv *env, jclass cls);
558
559 JNIEXPORT void JNICALL
560 JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers);
561
562 JNIEXPORT jobject JNICALL
563 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
564
565 JNIEXPORT jboolean JNICALL
566 JVM_IsArrayClass(JNIEnv *env, jclass cls);
567
568 JNIEXPORT jboolean JNICALL
569 JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);
570
571 JNIEXPORT jboolean JNICALL
572 JVM_IsHiddenClass(JNIEnv *env, jclass cls);
573
574 JNIEXPORT jint JNICALL
575 JVM_GetClassModifiers(JNIEnv *env, jclass cls);
576
577 JNIEXPORT jobjectArray JNICALL
578 JVM_GetDeclaredClasses(JNIEnv *env, jclass ofClass);
579
580 JNIEXPORT jclass JNICALL
581 JVM_GetDeclaringClass(JNIEnv *env, jclass ofClass);
582
583 JNIEXPORT jstring JNICALL
584 JVM_GetSimpleBinaryName(JNIEnv *env, jclass ofClass);
585
586 /* Generics support (JDK 1.5) */
587 JNIEXPORT jstring JNICALL
588 JVM_GetClassSignature(JNIEnv *env, jclass cls);
589
590 /* Annotations support (JDK 1.5) */
591 JNIEXPORT jbyteArray JNICALL
592 JVM_GetClassAnnotations(JNIEnv *env, jclass cls);
593
|
154 JVM_LoadZipLibrary();
155
156 JNIEXPORT void * JNICALL
157 JVM_LoadLibrary(const char *name, jboolean throwException);
158
159 JNIEXPORT void JNICALL
160 JVM_UnloadLibrary(void * handle);
161
162 JNIEXPORT void * JNICALL
163 JVM_FindLibraryEntry(void *handle, const char *name);
164
165 JNIEXPORT jboolean JNICALL
166 JVM_IsSupportedJNIVersion(jint version);
167
168 JNIEXPORT jobjectArray JNICALL
169 JVM_GetVmArguments(JNIEnv *env);
170
171 JNIEXPORT jboolean JNICALL
172 JVM_IsPreviewEnabled(void);
173
174 JNIEXPORT jboolean JNICALL
175 JVM_IsValhallaEnabled(void);
176
177 JNIEXPORT jboolean JNICALL
178 JVM_IsContinuationsSupported(void);
179
180 JNIEXPORT jboolean JNICALL
181 JVM_IsForeignLinkerSupported(void);
182
183 JNIEXPORT void JNICALL
184 JVM_InitializeFromArchive(JNIEnv* env, jclass cls);
185
186 JNIEXPORT void JNICALL
187 JVM_RegisterLambdaProxyClassForArchiving(JNIEnv* env, jclass caller,
188 jstring interfaceMethodName,
189 jobject factoryType,
190 jobject interfaceMethodType,
191 jobject implementationMember,
192 jobject dynamicMethodType,
193 jclass lambdaProxyClass);
194
195 JNIEXPORT jclass JNICALL
196 JVM_LookupLambdaProxyClassFromArchive(JNIEnv* env, jclass caller,
406 * JVM_GetCallerClass. The Method.invoke and other frames due to
407 * reflection machinery are skipped.
408 *
409 * The caller is expected to be marked with
410 * jdk.internal.reflect.CallerSensitive. The JVM will throw an
411 * error if it is not marked properly.
412 */
413 JNIEXPORT jclass JNICALL
414 JVM_GetCallerClass(JNIEnv *env);
415
416
417 /*
418 * Find primitive classes
419 * utf: class name
420 */
421 JNIEXPORT jclass JNICALL
422 JVM_FindPrimitiveClass(JNIEnv *env, const char *utf);
423
424
425 /*
426 * Find a class from a boot class loader. Returns nullptr if class not found.
427 */
428 JNIEXPORT jclass JNICALL
429 JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
430
431 /*
432 * Find a class from a given class loader. Throws ClassNotFoundException.
433 * name: name of class
434 * init: whether initialization is done
435 * loader: class loader to look up the class. This may not be the same as the caller's
436 * class loader.
437 * caller: initiating class. The initiating class may be null when a security
438 * manager is not installed.
439 */
440 JNIEXPORT jclass JNICALL
441 JVM_FindClassFromCaller(JNIEnv *env, const char *name, jboolean init,
442 jobject loader, jclass caller);
443
444 /*
445 * Find a class from a given class.
446 */
557 JVM_IsInterface(JNIEnv *env, jclass cls);
558
559 JNIEXPORT jobjectArray JNICALL
560 JVM_GetClassSigners(JNIEnv *env, jclass cls);
561
562 JNIEXPORT void JNICALL
563 JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers);
564
565 JNIEXPORT jobject JNICALL
566 JVM_GetProtectionDomain(JNIEnv *env, jclass cls);
567
568 JNIEXPORT jboolean JNICALL
569 JVM_IsArrayClass(JNIEnv *env, jclass cls);
570
571 JNIEXPORT jboolean JNICALL
572 JVM_IsPrimitiveClass(JNIEnv *env, jclass cls);
573
574 JNIEXPORT jboolean JNICALL
575 JVM_IsHiddenClass(JNIEnv *env, jclass cls);
576
577 JNIEXPORT jboolean JNICALL
578 JVM_IsIdentityClass(JNIEnv *env, jclass cls);
579
580 JNIEXPORT jint JNICALL
581 JVM_GetClassModifiers(JNIEnv *env, jclass cls);
582
583 JNIEXPORT jobjectArray JNICALL
584 JVM_GetDeclaredClasses(JNIEnv *env, jclass ofClass);
585
586 JNIEXPORT jclass JNICALL
587 JVM_GetDeclaringClass(JNIEnv *env, jclass ofClass);
588
589 JNIEXPORT jstring JNICALL
590 JVM_GetSimpleBinaryName(JNIEnv *env, jclass ofClass);
591
592 /* Generics support (JDK 1.5) */
593 JNIEXPORT jstring JNICALL
594 JVM_GetClassSignature(JNIEnv *env, jclass cls);
595
596 /* Annotations support (JDK 1.5) */
597 JNIEXPORT jbyteArray JNICALL
598 JVM_GetClassAnnotations(JNIEnv *env, jclass cls);
599
|