/* src/native/vm/reflect.h - helper functions for java/lang/reflect Copyright (C) 2007, 2008 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO This file is part of CACAO. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _REFLECT_H #define _REFLECT_H #include "config.h" #include #include "native/jni.h" #include "native/native.h" /* Keep this order of the native includes. */ #include "native/include/java_lang_String.h" #if defined(ENABLE_JAVASE) # if defined(WITH_CLASSPATH_SUN) # include "native/include/java_nio_ByteBuffer.h" /* required by j.l.CL */ # endif # include "native/include/java_lang_ClassLoader.h" #endif #include "native/include/java_lang_Object.h" #include "native/include/java_lang_Class.h" #if defined(ENABLE_JAVASE) # include "native/include/java_lang_reflect_Constructor.h" # include "native/include/java_lang_reflect_Field.h" # include "native/include/java_lang_reflect_Method.h" #endif #include "vmcore/field.h" #include "vmcore/method.h" /* function prototypes ********************************************************/ java_lang_reflect_Constructor *reflect_constructor_new(methodinfo *m); java_lang_reflect_Field *reflect_field_new(fieldinfo *f); java_lang_reflect_Method *reflect_method_new(methodinfo *m); java_handle_t *reflect_constructor_newinstance(methodinfo *m, java_handle_objectarray_t *args, bool override); java_handle_t *reflect_method_invoke(methodinfo *m, java_handle_t *o, java_handle_objectarray_t *args, bool override); #if defined(WITH_CLASSPATH_GNU) && defined(ENABLE_ANNOTATIONS) struct java_util_Map* reflect_get_declaredannotatios( java_handle_bytearray_t *annotations, java_lang_Class *declaringClass, classinfo *referer); java_handle_objectarray_t* reflect_get_parameterannotations( java_handle_t *parameterAnnotations, int32_t slot, java_lang_Class *declaringClass, classinfo *referer); #endif #endif /* _REFLECT_H */ /* * These are local overrides for various environment variables in Emacs. * Please do not remove this and leave it at the end of the file, where * Emacs will automagically detect them. * --------------------------------------------------------------------- * Local variables: * mode: c * indent-tabs-mode: t * c-basic-offset: 4 * tab-width: 4 * End: * vim:noexpandtab:sw=4:ts=4: */