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
37 #include "native/jni.h"
38 #include "native/native.h"
40 /* Keep this order of the native includes. */
42 #include "native/include/java_lang_String.h"
44 #if defined(ENABLE_JAVASE)
45 # if defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
46 # include "native/include/java_nio_ByteBuffer.h" /* required by j.l.CL */
48 # include "native/include/java_lang_ClassLoader.h"
51 #include "native/include/java_lang_Object.h"
52 #include "native/include/java_lang_Class.h"
54 #if defined(ENABLE_JAVASE)
55 # include "native/include/java_lang_reflect_Constructor.h"
56 # include "native/include/java_lang_reflect_Field.h"
57 # include "native/include/java_lang_reflect_Method.h"
60 #include "vmcore/field.h"
61 #include "vmcore/method.h"
64 /* function prototypes ********************************************************/
66 java_lang_reflect_Constructor *reflect_constructor_new(methodinfo *m);
67 java_lang_reflect_Field *reflect_field_new(fieldinfo *f);
68 java_lang_reflect_Method *reflect_method_new(methodinfo *m);
69 java_handle_t *reflect_constructor_newinstance(methodinfo *m, java_handle_objectarray_t *args, bool override);
70 java_handle_t *reflect_method_invoke(methodinfo *m, java_handle_t *o, java_handle_objectarray_t *args, bool override);
72 #if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH) && defined(ENABLE_ANNOTATIONS)
73 struct java_util_Map* reflect_get_declaredannotations(
74 java_handle_bytearray_t *annotations,
75 classinfo *declaringClass,
78 java_handle_objectarray_t* reflect_get_parameterannotations(
79 java_handle_t *parameterAnnotations,
88 #endif /* _REFLECT_H */
92 * These are local overrides for various environment variables in Emacs.
93 * Please do not remove this and leave it at the end of the file, where
94 * Emacs will automagically detect them.
95 * ---------------------------------------------------------------------
102 * vim:noexpandtab:sw=4:ts=4: