< prev index next >

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

Print this page
rev 52849 : [mq]: q-mirror-reflection


  39 
  40 /* defined in libverify.so/verify.dll (src file common/check_format.c) */
  41 extern jboolean VerifyClassname(char *utf_name, jboolean arrayAllowed);
  42 extern jboolean VerifyFixClassname(char *utf_name);
  43 
  44 #define OBJ "Ljava/lang/Object;"
  45 #define CLS "Ljava/lang/Class;"
  46 #define CPL "Ljdk/internal/reflect/ConstantPool;"
  47 #define STR "Ljava/lang/String;"
  48 #define FLD "Ljava/lang/reflect/Field;"
  49 #define MHD "Ljava/lang/reflect/Method;"
  50 #define CTR "Ljava/lang/reflect/Constructor;"
  51 #define PD  "Ljava/security/ProtectionDomain;"
  52 #define BA  "[B"
  53 
  54 static JNINativeMethod methods[] = {
  55     {"getName0",         "()" STR,          (void *)&JVM_GetClassName},
  56     {"getSuperclass",    "()" CLS,          NULL},
  57     {"getInterfaces0",   "()[" CLS,         (void *)&JVM_GetClassInterfaces},
  58     {"isInterface",      "()Z",             (void *)&JVM_IsInterface},
  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 




  39 
  40 /* defined in libverify.so/verify.dll (src file common/check_format.c) */
  41 extern jboolean VerifyClassname(char *utf_name, jboolean arrayAllowed);
  42 extern jboolean VerifyFixClassname(char *utf_name);
  43 
  44 #define OBJ "Ljava/lang/Object;"
  45 #define CLS "Ljava/lang/Class;"
  46 #define CPL "Ljdk/internal/reflect/ConstantPool;"
  47 #define STR "Ljava/lang/String;"
  48 #define FLD "Ljava/lang/reflect/Field;"
  49 #define MHD "Ljava/lang/reflect/Method;"
  50 #define CTR "Ljava/lang/reflect/Constructor;"
  51 #define PD  "Ljava/security/ProtectionDomain;"
  52 #define BA  "[B"
  53 
  54 static JNINativeMethod methods[] = {
  55     {"getName0",         "()" STR,          (void *)&JVM_GetClassName},
  56     {"getSuperclass",    "()" CLS,          NULL},
  57     {"getInterfaces0",   "()[" CLS,         (void *)&JVM_GetClassInterfaces},
  58     {"isInterface",      "()Z",             (void *)&JVM_IsInterface},
  59     {"getSigners0",      "()[" OBJ,         (void *)&JVM_GetClassSigners},
  60     {"setSigners0",      "([" 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 


< prev index next >