1 /* src/native/vm/reflect.h - helper functions for java/lang/reflect
3 Copyright (C) 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2, or (at
11 your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
33 #include "native/jni.h"
34 #include "native/native.h"
36 /* Keep this order of the native includes. */
38 #include "native/include/java_lang_String.h"
40 #if defined(ENABLE_JAVASE)
41 # if defined(WITH_CLASSPATH_SUN)
42 # include "native/include/java_nio_ByteBuffer.h" /* required by j.l.CL */
44 # include "native/include/java_lang_ClassLoader.h"
47 #include "native/include/java_lang_Object.h"
48 #include "native/include/java_lang_Class.h"
50 #if defined(ENABLE_JAVASE)
51 # include "native/include/java_lang_reflect_Constructor.h"
52 # include "native/include/java_lang_reflect_Field.h"
53 # include "native/include/java_lang_reflect_Method.h"
56 #include "vmcore/field.h"
57 #include "vmcore/method.h"
60 /* function prototypes ********************************************************/
62 java_lang_reflect_Constructor *reflect_constructor_new(methodinfo *m);
63 java_lang_reflect_Field *reflect_field_new(fieldinfo *f);
64 java_lang_reflect_Method *reflect_method_new(methodinfo *m);
65 java_handle_t *reflect_constructor_newinstance(methodinfo *m, java_handle_objectarray_t *args, bool override);
66 java_handle_t *reflect_method_invoke(methodinfo *m, java_handle_t *o, java_handle_objectarray_t *args, bool override);
68 #if defined(WITH_CLASSPATH_GNU) && defined(ENABLE_ANNOTATIONS)
69 struct java_util_Map* reflect_get_declaredannotatios(
70 java_handle_bytearray_t *annotations,
71 java_lang_Class *declaringClass,
74 java_handle_objectarray_t* reflect_get_parameterannotations(
75 java_handle_t *parameterAnnotations,
77 java_lang_Class *declaringClass,
81 #endif /* _REFLECT_H */
85 * These are local overrides for various environment variables in Emacs.
86 * Please do not remove this and leave it at the end of the file, where
87 * Emacs will automagically detect them.
88 * ---------------------------------------------------------------------
95 * vim:noexpandtab:sw=4:ts=4: