45 #define OBJ "Ljava/lang/Object;"
46 #define CLS "Ljava/lang/Class;"
47 #define CPL "Ljdk/internal/reflect/ConstantPool;"
48 #define STR "Ljava/lang/String;"
49 #define FLD "Ljava/lang/reflect/Field;"
50 #define MHD "Ljava/lang/reflect/Method;"
51 #define CTR "Ljava/lang/reflect/Constructor;"
52 #define PD "Ljava/security/ProtectionDomain;"
53 #define BA "[B"
54 #define RC "Ljava/lang/reflect/RecordComponent;"
55
56 static JNINativeMethod methods[] = {
57 {"initClassName", "()" STR, (void *)&JVM_InitClassName},
58 {"getSuperclass", "()" CLS, NULL},
59 {"getInterfaces0", "()[" CLS, (void *)&JVM_GetClassInterfaces},
60 {"isInterface", "()Z", (void *)&JVM_IsInterface},
61 {"getSigners", "()[" OBJ, (void *)&JVM_GetClassSigners},
62 {"setSigners", "([" OBJ ")V", (void *)&JVM_SetClassSigners},
63 {"isArray", "()Z", (void *)&JVM_IsArrayClass},
64 {"isHidden", "()Z", (void *)&JVM_IsHiddenClass},
65 {"isPrimitive", "()Z", (void *)&JVM_IsPrimitiveClass},
66 {"getModifiers", "()I", (void *)&JVM_GetClassModifiers},
67 {"getDeclaredFields0","(Z)[" FLD, (void *)&JVM_GetClassDeclaredFields},
68 {"getDeclaredMethods0","(Z)[" MHD, (void *)&JVM_GetClassDeclaredMethods},
69 {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
70 {"getProtectionDomain0", "()" PD, (void *)&JVM_GetProtectionDomain},
71 {"getDeclaredClasses0", "()[" CLS, (void *)&JVM_GetDeclaredClasses},
72 {"getDeclaringClass0", "()" CLS, (void *)&JVM_GetDeclaringClass},
73 {"getSimpleBinaryName0", "()" STR, (void *)&JVM_GetSimpleBinaryName},
74 {"getGenericSignature0", "()" STR, (void *)&JVM_GetClassSignature},
75 {"getRawAnnotations", "()" BA, (void *)&JVM_GetClassAnnotations},
76 {"getConstantPool", "()" CPL, (void *)&JVM_GetClassConstantPool},
77 {"desiredAssertionStatus0","("CLS")Z", (void *)&JVM_DesiredAssertionStatus},
78 {"getEnclosingMethod0", "()[" OBJ, (void *)&JVM_GetEnclosingMethodInfo},
79 {"getRawTypeAnnotations", "()" BA, (void *)&JVM_GetClassTypeAnnotations},
80 {"getNestHost0", "()" CLS, (void *)&JVM_GetNestHost},
81 {"getNestMembers0", "()[" CLS, (void *)&JVM_GetNestMembers},
82 {"getRecordComponents0", "()[" RC, (void *)&JVM_GetRecordComponents},
83 {"isRecord0", "()Z", (void *)&JVM_IsRecord},
84 {"getPermittedSubclasses0", "()[" CLS, (void *)&JVM_GetPermittedSubclasses},
|
45 #define OBJ "Ljava/lang/Object;"
46 #define CLS "Ljava/lang/Class;"
47 #define CPL "Ljdk/internal/reflect/ConstantPool;"
48 #define STR "Ljava/lang/String;"
49 #define FLD "Ljava/lang/reflect/Field;"
50 #define MHD "Ljava/lang/reflect/Method;"
51 #define CTR "Ljava/lang/reflect/Constructor;"
52 #define PD "Ljava/security/ProtectionDomain;"
53 #define BA "[B"
54 #define RC "Ljava/lang/reflect/RecordComponent;"
55
56 static JNINativeMethod methods[] = {
57 {"initClassName", "()" STR, (void *)&JVM_InitClassName},
58 {"getSuperclass", "()" CLS, NULL},
59 {"getInterfaces0", "()[" CLS, (void *)&JVM_GetClassInterfaces},
60 {"isInterface", "()Z", (void *)&JVM_IsInterface},
61 {"getSigners", "()[" OBJ, (void *)&JVM_GetClassSigners},
62 {"setSigners", "([" OBJ ")V", (void *)&JVM_SetClassSigners},
63 {"isArray", "()Z", (void *)&JVM_IsArrayClass},
64 {"isHidden", "()Z", (void *)&JVM_IsHiddenClass},
65 {"isIdentity", "()Z", (void *)&JVM_IsIdentityClass},
66 {"isPrimitive", "()Z", (void *)&JVM_IsPrimitiveClass},
67 {"getModifiers", "()I", (void *)&JVM_GetClassModifiers},
68 {"getDeclaredFields0","(Z)[" FLD, (void *)&JVM_GetClassDeclaredFields},
69 {"getDeclaredMethods0","(Z)[" MHD, (void *)&JVM_GetClassDeclaredMethods},
70 {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
71 {"getProtectionDomain0", "()" PD, (void *)&JVM_GetProtectionDomain},
72 {"getDeclaredClasses0", "()[" CLS, (void *)&JVM_GetDeclaredClasses},
73 {"getDeclaringClass0", "()" CLS, (void *)&JVM_GetDeclaringClass},
74 {"getSimpleBinaryName0", "()" STR, (void *)&JVM_GetSimpleBinaryName},
75 {"getGenericSignature0", "()" STR, (void *)&JVM_GetClassSignature},
76 {"getRawAnnotations", "()" BA, (void *)&JVM_GetClassAnnotations},
77 {"getConstantPool", "()" CPL, (void *)&JVM_GetClassConstantPool},
78 {"desiredAssertionStatus0","("CLS")Z", (void *)&JVM_DesiredAssertionStatus},
79 {"getEnclosingMethod0", "()[" OBJ, (void *)&JVM_GetEnclosingMethodInfo},
80 {"getRawTypeAnnotations", "()" BA, (void *)&JVM_GetClassTypeAnnotations},
81 {"getNestHost0", "()" CLS, (void *)&JVM_GetNestHost},
82 {"getNestMembers0", "()[" CLS, (void *)&JVM_GetNestMembers},
83 {"getRecordComponents0", "()[" RC, (void *)&JVM_GetRecordComponents},
84 {"isRecord0", "()Z", (void *)&JVM_IsRecord},
85 {"getPermittedSubclasses0", "()[" CLS, (void *)&JVM_GetPermittedSubclasses},
|