1 /* src/native/vm/reflect.h - helper functions for java/lang/reflect
3 Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
32 #include "native/jni.h"
33 #include "native/native.h"
35 /* keep this order of the native includes */
37 #include "native/include/java_lang_String.h"
39 #if defined(ENABLE_JAVASE)
40 # if defined(WITH_CLASSPATH_SUN)
41 # include "native/include/java_nio_ByteBuffer.h" /* required by j.l.CL */
43 # include "native/include/java_lang_ClassLoader.h"
46 #include "native/include/java_lang_Object.h"
47 #include "native/include/java_lang_Class.h"
49 #if defined(ENABLE_JAVASE)
50 # include "native/include/java_lang_reflect_Constructor.h"
51 # include "native/include/java_lang_reflect_Field.h"
52 # include "native/include/java_lang_reflect_Method.h"
55 #include "vmcore/field.h"
56 #include "vmcore/method.h"
59 /* function prototypes ********************************************************/
61 java_lang_reflect_Constructor *reflect_constructor_new(methodinfo *m);
62 java_lang_reflect_Field *reflect_field_new(fieldinfo *f);
63 java_lang_reflect_Method *reflect_method_new(methodinfo *m);
65 #if defined(WITH_CLASSPATH_GNU) && defined(ENABLE_ANNOTATIONS)
66 struct java_util_Map* reflect_get_declaredannotatios(
67 java_handle_bytearray_t *annotations,
68 java_lang_Class *declaringClass,
71 java_handle_objectarray_t* reflect_get_parameterannotations(
72 java_handle_t *parameterAnnotations,
74 java_lang_Class *declaringClass,
79 * These are local overrides for various environment variables in Emacs.
80 * Please do not remove this and leave it at the end of the file, where
81 * Emacs will automagically detect them.
82 * ---------------------------------------------------------------------
89 * vim:noexpandtab:sw=4:ts=4: