30 #if defined(ENABLE_ANNOTATIONS)
38 #if defined(ENABLE_JNI_HEADERS)
39 # include "native/vm/include/java_lang_reflect_VMMethod.h"
153 #if defined(ENABLE_ANNOTATIONS)
163 static methodinfo *m_parseAnnotationDefault = NULL;
185 if (m_parseAnnotationDefault == NULL) {
188 "(Ljava/lang/reflect/Method;[BLsun/reflect/ConstantPool;)"
189 "Ljava/lang/Object;");
191 if (utf_parseAnnotationDefault == NULL || utf_desc == NULL) {
200 utf_parseAnnotationDefault,
205 if (m_parseAnnotationDefault == NULL) {
231 if (declaredAnnotations == NULL) {
241 return (
jobject) declaredAnnotations;
274 #if defined(ENABLE_ANNOTATIONS)
static java_handle_t * get_declaredannotations(java_handle_bytearray_t *annotations, classinfo *declaringClass, classinfo *referer)
void _Jv_java_lang_reflect_VMMethod_init(void)
methodinfo * class_resolveclassmethod(classinfo *c, Utf8String name, Utf8String desc, classinfo *referer, bool throwexception)
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMMethod_invoke(JNIEnv *env, jobject _this, jobject o, jobjectArray args)
virtual java_handle_t * get_handle() const
Table containing all native methods registered with the VM.
NativeMethods & get_nativemethods()
void register_methods(Utf8String classname, const JNINativeMethod *methods, size_t count)
Register native methods with the VM.
void set_constantPoolOop(classinfo *value)
#define NATIVE_METHODS_COUNT
static JavaString from_utf8(Utf8String)
classinfo * class_sun_reflect_annotation_AnnotationParser
OpenJDK sun/reflect/ConstantPool.
static java_handle_objectarray_t * get_parameterannotations(java_handle_bytearray_t *parameterAnnotations, methodinfo *m, classinfo *referer)
classinfo * get_clazz() const
classinfo * get_Class() const
java_handle_t * vm_call_method(methodinfo *m, java_handle_t *o,...)
JNIEXPORT jstring JNICALL Java_java_lang_reflect_VMMethod_getSignature(JNIEnv *env, jobject _this)
JNIEXPORT jobjectArray JNICALL Java_java_lang_reflect_VMMethod_getParameterAnnotations(JNIEnv *env, jobject _this)
java_handle_objectarray_t * method_get_parametertypearray(methodinfo *m)
classinfo * class_sun_reflect_ConstantPool
#define LLNI_classinfo_wrap(classinfo)
JNIEXPORT jint JNICALL Java_java_lang_reflect_VMMethod_getModifiersInternal(JNIEnv *env, jobject _this)
java_handle_bytearray_t * get_annotations() const
methodinfo * get_method() const
java_handle_t * get_declaredAnnotations() const
void exceptions_throw_nullpointerexception(void)
GNU Classpath java/lang/reflect/Method.
static Utf8String from_utf8(const char *, size_t)
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMMethod_getDefaultValue(JNIEnv *env, jobject _this)
classinfo * method_returntype_get(methodinfo *m)
java_handle_t * native_new_and_init(classinfo *c)
Registers a new native agent by specified by it's library name and with an optional options string...
java_handle_bytearray_t * get_parameterAnnotations() const
GNU Classpath java/lang/reflect/VMMethod.
java_handle_bytearray_t * get_annotationDefault() const
void set_declaredAnnotations(java_handle_t *value)
JNIEXPORT jobjectArray JNICALL Java_java_lang_reflect_VMMethod_getParameterTypes(JNIEnv *env, jobject _this)
JNIEXPORT jclass JNICALL Java_java_lang_reflect_VMMethod_getReturnType(JNIEnv *env, jobject _this)
JNIEXPORT jobject JNICALL Java_java_lang_reflect_VMMethod_declaredAnnotations(JNIEnv *env, jobject _this)
JNIEXPORT jobjectArray JNICALL Java_java_lang_reflect_VMMethod_getExceptionTypes(JNIEnv *env, jobject _this)
static JNINativeMethod methods[]
java_handle_t * get_m() const
java_handle_objectarray_t * method_get_exceptionarray(methodinfo *m)
static VM * get_current()