Class.h (_getMethods): Declare.

* java/lang/Class.h (_getMethods): Declare.
	* java/lang/Class.java (_getMethods): Declare.
	* java/lang/natClass.cc (getDeclaringClass): Always return NULL.
	(getDeclaredClasses): Always return empty array.
	(_getMethods): New method.
	(getMethods): Wrote.
	(getDeclaredMethod): Return `rmethod'.
	(finit_name): New global.
	(getDeclaredMethods): Check for finit_name.
	(_getMethods): Likewise.
	(getMethod): Only return public methods.

From-SVN: r31245
This commit is contained in:
Tom Tromey 2000-01-05 22:22:10 +00:00 committed by Tom Tromey
parent cb3ca04ee1
commit 6f2b93eb2f
4 changed files with 143 additions and 8 deletions

View file

@ -105,6 +105,8 @@ public:
void getSignature (java::lang::StringBuffer *buffer);
static jstring getSignature (JArray<jclass> *, jboolean is_constructor);
java::lang::reflect::Method *getMethod (jstring, JArray<jclass> *);
jint _getMethods (JArray<java::lang::reflect::Method *> *result,
jint offset);
JArray<java::lang::reflect::Method *> *getMethods (void);
jint getModifiers (void)