589a3bc9a57012f95d6be352f159de2e6fcd1f50
[cacao.git] / src / native / vm / reflect.h
1 /* src/native/vm/reflect.h - helper functions for java/lang/reflect
2
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
7
8    This file is part of CACAO.
9
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.
14
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.
19
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
23    02110-1301, USA.
24
25    $Id: reflect.h 8318 2007-08-16 10:05:34Z michi $
26
27 */
28
29
30 #include "config.h"
31
32 #include <stdint.h>
33
34 #include "native/jni.h"
35 #include "native/native.h"
36
37 /* keep this order of the native includes */
38
39 #include "native/include/java_lang_String.h"
40
41 #if defined(ENABLE_JAVASE)
42 # if defined(WITH_CLASSPATH_SUN)
43 #  include "native/include/java_nio_ByteBuffer.h"       /* required by j.l.CL */
44 # endif
45 # include "native/include/java_lang_ClassLoader.h"
46 #endif
47
48 #include "native/include/java_lang_Object.h"
49 #include "native/include/java_lang_Class.h"
50
51 #if defined(ENABLE_JAVASE)
52 # include "native/include/java_lang_reflect_Constructor.h"
53 # include "native/include/java_lang_reflect_Field.h"
54 # include "native/include/java_lang_reflect_Method.h"
55 #endif
56
57 #include "vmcore/field.h"
58 #include "vmcore/method.h"
59
60
61 /* function prototypes ********************************************************/
62
63 java_lang_reflect_Constructor *reflect_constructor_new(methodinfo *m);
64 java_lang_reflect_Field       *reflect_field_new(fieldinfo *f);
65 java_lang_reflect_Method      *reflect_method_new(methodinfo *m);
66
67 #if defined(WITH_CLASSPATH_GNU) && defined(ENABLE_ANNOTATIONS)
68 struct java_util_Map* reflect_get_declaredannotatios(
69         java_handle_bytearray_t *annotations,
70         java_lang_Class         *declaringClass,
71         classinfo               *referer);
72
73 java_handle_objectarray_t* reflect_get_parameterannotations(
74         java_handle_t   *parameterAnnotations,
75         int32_t          slot,
76         java_lang_Class *declaringClass,
77         classinfo       *referer);
78 #endif
79
80 /*
81  * These are local overrides for various environment variables in Emacs.
82  * Please do not remove this and leave it at the end of the file, where
83  * Emacs will automagically detect them.
84  * ---------------------------------------------------------------------
85  * Local variables:
86  * mode: c
87  * indent-tabs-mode: t
88  * c-basic-offset: 4
89  * tab-width: 4
90  * End:
91  * vim:noexpandtab:sw=4:ts=4:
92  */