Merged gcj-eclipse branch to trunk.
[official-gcc.git] / libjava / java / lang / reflect / Method.h
blob7d4b46d3e27adcc1a8df18b27158bb24f5537321
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_lang_reflect_Method__
5 #define __java_lang_reflect_Method__
7 #pragma interface
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
19 Method();
20 public:
21 ::java::lang::Class * getDeclaringClass();
22 ::java::lang::String * getName();
23 private:
24 jint getModifiersInternal();
25 public:
26 jint getModifiers();
27 jboolean isBridge();
28 jboolean isSynthetic();
29 jboolean isVarArgs();
30 ::java::lang::Class * getReturnType();
31 JArray< ::java::lang::Class * > * getParameterTypes();
32 JArray< ::java::lang::Class * > * getExceptionTypes();
33 jboolean equals(::java::lang::Object *);
34 jint hashCode();
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();
39 private:
40 ::java::lang::String * getSignature();
41 public:
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();
49 private:
50 JArray< ::java::lang::annotation::Annotation * > * getDeclaredAnnotationsInternal();
51 JArray< JArray< ::java::lang::annotation::Annotation * > * > * getParameterAnnotationsInternal();
52 void getType();
53 public: // actually package-private
54 static void appendClassName(::java::lang::StringBuffer *, ::java::lang::Class *);
55 static const jint METHOD_MODIFIERS = 3391;
56 private:
57 ::java::lang::Class * __attribute__((aligned(__alignof__( ::java::lang::reflect::AccessibleObject)))) declaringClass;
58 public: // actually package-private
59 JArray< ::java::lang::Class * > * exception_types;
60 private:
61 ::java::lang::String * name;
62 public: // actually package-private
63 JArray< ::java::lang::Class * > * parameter_types;
64 ::java::lang::Class * return_type;
65 private:
66 jint offset;
67 public:
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__