< prev index next >

src/java.base/share/native/libjava/Class.c

Print this page

 43 extern jboolean VerifyFixClassname(char *utf_name);
 44 
 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     {"isArray",          "()Z",             (void *)&JVM_IsArrayClass},
 62     {"isHidden",         "()Z",             (void *)&JVM_IsHiddenClass},

 63     {"isPrimitive",      "()Z",             (void *)&JVM_IsPrimitiveClass},
 64     {"getModifiers",     "()I",             (void *)&JVM_GetClassModifiers},
 65     {"getDeclaredFields0","(Z)[" FLD,       (void *)&JVM_GetClassDeclaredFields},
 66     {"getDeclaredMethods0","(Z)[" MHD,      (void *)&JVM_GetClassDeclaredMethods},
 67     {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
 68     {"getProtectionDomain0", "()" PD,       (void *)&JVM_GetProtectionDomain},
 69     {"getDeclaredClasses0",  "()[" CLS,     (void *)&JVM_GetDeclaredClasses},
 70     {"getDeclaringClass0",   "()" CLS,      (void *)&JVM_GetDeclaringClass},
 71     {"getSimpleBinaryName0", "()" STR,      (void *)&JVM_GetSimpleBinaryName},
 72     {"getGenericSignature0", "()" STR,      (void *)&JVM_GetClassSignature},
 73     {"getRawAnnotations",      "()" BA,     (void *)&JVM_GetClassAnnotations},
 74     {"getConstantPool",     "()" CPL,       (void *)&JVM_GetClassConstantPool},
 75     {"desiredAssertionStatus0","("CLS")Z",  (void *)&JVM_DesiredAssertionStatus},
 76     {"getEnclosingMethod0", "()[" OBJ,      (void *)&JVM_GetEnclosingMethodInfo},
 77     {"getRawTypeAnnotations", "()" BA,      (void *)&JVM_GetClassTypeAnnotations},
 78     {"getNestHost0",         "()" CLS,      (void *)&JVM_GetNestHost},
 79     {"getNestMembers0",      "()[" CLS,     (void *)&JVM_GetNestMembers},
 80     {"getRecordComponents0", "()[" RC,      (void *)&JVM_GetRecordComponents},
 81     {"isRecord0",            "()Z",         (void *)&JVM_IsRecord},
 82     {"getPermittedSubclasses0", "()[" CLS,  (void *)&JVM_GetPermittedSubclasses},

 43 extern jboolean VerifyFixClassname(char *utf_name);
 44 
 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     {"isArray",          "()Z",             (void *)&JVM_IsArrayClass},
 62     {"isHidden",         "()Z",             (void *)&JVM_IsHiddenClass},
 63     {"isIdentity",       "()Z",             (void *)&JVM_IsIdentityClass},
 64     {"isPrimitive",      "()Z",             (void *)&JVM_IsPrimitiveClass},
 65     {"getModifiers",     "()I",             (void *)&JVM_GetClassModifiers},
 66     {"getDeclaredFields0","(Z)[" FLD,       (void *)&JVM_GetClassDeclaredFields},
 67     {"getDeclaredMethods0","(Z)[" MHD,      (void *)&JVM_GetClassDeclaredMethods},
 68     {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
 69     {"getProtectionDomain0", "()" PD,       (void *)&JVM_GetProtectionDomain},
 70     {"getDeclaredClasses0",  "()[" CLS,     (void *)&JVM_GetDeclaredClasses},
 71     {"getDeclaringClass0",   "()" CLS,      (void *)&JVM_GetDeclaringClass},
 72     {"getSimpleBinaryName0", "()" STR,      (void *)&JVM_GetSimpleBinaryName},
 73     {"getGenericSignature0", "()" STR,      (void *)&JVM_GetClassSignature},
 74     {"getRawAnnotations",      "()" BA,     (void *)&JVM_GetClassAnnotations},
 75     {"getConstantPool",     "()" CPL,       (void *)&JVM_GetClassConstantPool},
 76     {"desiredAssertionStatus0","("CLS")Z",  (void *)&JVM_DesiredAssertionStatus},
 77     {"getEnclosingMethod0", "()[" OBJ,      (void *)&JVM_GetEnclosingMethodInfo},
 78     {"getRawTypeAnnotations", "()" BA,      (void *)&JVM_GetClassTypeAnnotations},
 79     {"getNestHost0",         "()" CLS,      (void *)&JVM_GetNestHost},
 80     {"getNestMembers0",      "()[" CLS,     (void *)&JVM_GetNestMembers},
 81     {"getRecordComponents0", "()[" RC,      (void *)&JVM_GetRecordComponents},
 82     {"isRecord0",            "()Z",         (void *)&JVM_IsRecord},
 83     {"getPermittedSubclasses0", "()[" CLS,  (void *)&JVM_GetPermittedSubclasses},
< prev index next >