* Removed all Id tags.
[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 */
26
27
28 #include "config.h"
29
30 #include <stdint.h>
31
32 #include "native/jni.h"
33 #include "native/native.h"
34
35 /* keep this order of the native includes */
36
37 #include "native/include/java_lang_String.h"
38
39 #if defined(ENABLE_JAVASE)
40 # if defined(WITH_CLASSPATH_SUN)
41 #  include "native/include/java_nio_ByteBuffer.h"       /* required by j.l.CL */
42 # endif
43 # include "native/include/java_lang_ClassLoader.h"
44 #endif
45
46 #include "native/include/java_lang_Object.h"
47 #include "native/include/java_lang_Class.h"
48
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"
53 #endif
54
55 #include "vmcore/field.h"
56 #include "vmcore/method.h"
57
58
59 /* function prototypes ********************************************************/
60
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);
64
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,
69         classinfo               *referer);
70
71 java_handle_objectarray_t* reflect_get_parameterannotations(
72         java_handle_t   *parameterAnnotations,
73         int32_t          slot,
74         java_lang_Class *declaringClass,
75         classinfo       *referer);
76 #endif
77
78 /*
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  * ---------------------------------------------------------------------
83  * Local variables:
84  * mode: c
85  * indent-tabs-mode: t
86  * c-basic-offset: 4
87  * tab-width: 4
88  * End:
89  * vim:noexpandtab:sw=4:ts=4:
90  */