2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_lang_reflect_Method__
5 #define __java_lang_reflect_Method__
9 #include <java/lang/reflect/AccessibleObject.h>
10 #include <gcj/array.h>
13 jmethodID
_Jv_FromReflectedMethod (java::lang::reflect::Method
*);
14 jobject
_Jv_JNI_ToReflectedMethod (_Jv_JNIEnv
*, jclass
, jmethodID
, jboolean
);
16 class java::lang::reflect::Method
: public ::java::lang::reflect::AccessibleObject
21 ::java::lang::Class
* getDeclaringClass();
22 ::java::lang::String
* getName();
24 jint
getModifiersInternal();
28 jboolean
isSynthetic();
30 ::java::lang::Class
* getReturnType();
31 JArray
< ::java::lang::Class
* > * getParameterTypes();
32 JArray
< ::java::lang::Class
* > * getExceptionTypes();
33 jboolean
equals(::java::lang::Object
*);
35 ::java::lang::String
* toString();
36 ::java::lang::String
* toGenericString();
37 ::java::lang::Object
* invoke(::java::lang::Object
*, JArray
< ::java::lang::Object
* > *);
38 JArray
< ::java::lang::reflect::TypeVariable
* > * getTypeParameters();
40 ::java::lang::String
* getSignature();
42 JArray
< ::java::lang::reflect::Type
* > * getGenericExceptionTypes();
43 JArray
< ::java::lang::reflect::Type
* > * getGenericParameterTypes();
44 ::java::lang::reflect::Type
* getGenericReturnType();
45 ::java::lang::Object
* getDefaultValue();
46 ::java::lang::annotation::Annotation
* getAnnotation(::java::lang::Class
*);
47 JArray
< ::java::lang::annotation::Annotation
* > * getDeclaredAnnotations();
48 JArray
< JArray
< ::java::lang::annotation::Annotation
* > * > * getParameterAnnotations();
50 JArray
< ::java::lang::annotation::Annotation
* > * getDeclaredAnnotationsInternal();
51 JArray
< JArray
< ::java::lang::annotation::Annotation
* > * > * getParameterAnnotationsInternal();
53 public: // actually package-private
54 static void appendClassName(::java::lang::StringBuffer
*, ::java::lang::Class
*);
55 static const jint METHOD_MODIFIERS
= 3391;
57 ::java::lang::Class
* __attribute__((aligned(__alignof__( ::java::lang::reflect::AccessibleObject
)))) declaringClass
;
58 public: // actually package-private
59 JArray
< ::java::lang::Class
* > * exception_types
;
61 ::java::lang::String
* name
;
62 public: // actually package-private
63 JArray
< ::java::lang::Class
* > * parameter_types
;
64 ::java::lang::Class
* return_type
;
68 static ::java::lang::Class
class$
;
70 friend jmethodID (::_Jv_FromReflectedMethod
) (java::lang::reflect::Method
*);
71 friend jobject (::_Jv_JNI_ToReflectedMethod
) (_Jv_JNIEnv
*, jclass
, jmethodID
, jboolean
);
72 friend class java::lang::Class
;
73 friend class java::io::ObjectInputStream
;
76 #endif // __java_lang_reflect_Method__