< prev index next >

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

Print this page




  59     {"getSigners",       "()[" OBJ,         (void *)&JVM_GetClassSigners},
  60     {"setSigners",       "([" OBJ ")V",     (void *)&JVM_SetClassSigners},
  61     {"isArray",          "()Z",             (void *)&JVM_IsArrayClass},
  62     {"isPrimitive",      "()Z",             (void *)&JVM_IsPrimitiveClass},
  63     {"getModifiers",     "()I",             (void *)&JVM_GetClassModifiers},
  64     {"getDeclaredFields0","(Z)[" FLD,       (void *)&JVM_GetClassDeclaredFields},
  65     {"getDeclaredMethods0","(Z)[" MHD,      (void *)&JVM_GetClassDeclaredMethods},
  66     {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
  67     {"getProtectionDomain0", "()" PD,       (void *)&JVM_GetProtectionDomain},
  68     {"getDeclaredClasses0",  "()[" CLS,     (void *)&JVM_GetDeclaredClasses},
  69     {"getDeclaringClass0",   "()" CLS,      (void *)&JVM_GetDeclaringClass},
  70     {"getSimpleBinaryName0", "()" STR,      (void *)&JVM_GetSimpleBinaryName},
  71     {"getGenericSignature0", "()" STR,      (void *)&JVM_GetClassSignature},
  72     {"getRawAnnotations",      "()" BA,     (void *)&JVM_GetClassAnnotations},
  73     {"getConstantPool",     "()" CPL,       (void *)&JVM_GetClassConstantPool},
  74     {"desiredAssertionStatus0","("CLS")Z",  (void *)&JVM_DesiredAssertionStatus},
  75     {"getEnclosingMethod0", "()[" OBJ,      (void *)&JVM_GetEnclosingMethodInfo},
  76     {"getRawTypeAnnotations", "()" BA,      (void *)&JVM_GetClassTypeAnnotations},
  77     {"getNestHost0",         "()" CLS,      (void *)&JVM_GetNestHost},
  78     {"getNestMembers0",      "()[" CLS,     (void *)&JVM_GetNestMembers},


  79 };
  80 
  81 #undef OBJ
  82 #undef CLS
  83 #undef STR
  84 #undef FLD
  85 #undef MHD
  86 #undef CTR
  87 #undef PD
  88 
  89 JNIEXPORT void JNICALL
  90 Java_java_lang_Class_registerNatives(JNIEnv *env, jclass cls)
  91 {
  92     methods[1].fnPtr = (void *)(*env)->GetSuperclass;
  93     (*env)->RegisterNatives(env, cls, methods,
  94                             sizeof(methods)/sizeof(JNINativeMethod));
  95 }
  96 
  97 JNIEXPORT jclass JNICALL
  98 Java_java_lang_Class_forName0(JNIEnv *env, jclass this, jstring classname,




  59     {"getSigners",       "()[" OBJ,         (void *)&JVM_GetClassSigners},
  60     {"setSigners",       "([" OBJ ")V",     (void *)&JVM_SetClassSigners},
  61     {"isArray",          "()Z",             (void *)&JVM_IsArrayClass},
  62     {"isPrimitive",      "()Z",             (void *)&JVM_IsPrimitiveClass},
  63     {"getModifiers",     "()I",             (void *)&JVM_GetClassModifiers},
  64     {"getDeclaredFields0","(Z)[" FLD,       (void *)&JVM_GetClassDeclaredFields},
  65     {"getDeclaredMethods0","(Z)[" MHD,      (void *)&JVM_GetClassDeclaredMethods},
  66     {"getDeclaredConstructors0","(Z)[" CTR, (void *)&JVM_GetClassDeclaredConstructors},
  67     {"getProtectionDomain0", "()" PD,       (void *)&JVM_GetProtectionDomain},
  68     {"getDeclaredClasses0",  "()[" CLS,     (void *)&JVM_GetDeclaredClasses},
  69     {"getDeclaringClass0",   "()" CLS,      (void *)&JVM_GetDeclaringClass},
  70     {"getSimpleBinaryName0", "()" STR,      (void *)&JVM_GetSimpleBinaryName},
  71     {"getGenericSignature0", "()" STR,      (void *)&JVM_GetClassSignature},
  72     {"getRawAnnotations",      "()" BA,     (void *)&JVM_GetClassAnnotations},
  73     {"getConstantPool",     "()" CPL,       (void *)&JVM_GetClassConstantPool},
  74     {"desiredAssertionStatus0","("CLS")Z",  (void *)&JVM_DesiredAssertionStatus},
  75     {"getEnclosingMethod0", "()[" OBJ,      (void *)&JVM_GetEnclosingMethodInfo},
  76     {"getRawTypeAnnotations", "()" BA,      (void *)&JVM_GetClassTypeAnnotations},
  77     {"getNestHost0",         "()" CLS,      (void *)&JVM_GetNestHost},
  78     {"getNestMembers0",      "()[" CLS,     (void *)&JVM_GetNestMembers},
  79     {"getRecordParameters0",  "()[" FLD,    (void *)&JVM_GetRecordParameters},
  80     {"getRecordParametersCount0", "()I",    (void *)&JVM_GetRecordParametersCount},
  81 };
  82 
  83 #undef OBJ
  84 #undef CLS
  85 #undef STR
  86 #undef FLD
  87 #undef MHD
  88 #undef CTR
  89 #undef PD
  90 
  91 JNIEXPORT void JNICALL
  92 Java_java_lang_Class_registerNatives(JNIEnv *env, jclass cls)
  93 {
  94     methods[1].fnPtr = (void *)(*env)->GetSuperclass;
  95     (*env)->RegisterNatives(env, cls, methods,
  96                             sizeof(methods)/sizeof(JNINativeMethod));
  97 }
  98 
  99 JNIEXPORT jclass JNICALL
 100 Java_java_lang_Class_forName0(JNIEnv *env, jclass this, jstring classname,


< prev index next >