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

@ -94,6 +94,7 @@ public final class Class implements Serializable
public native Method getMethod (String methodName, Class[] parameterTypes)
throws NoSuchMethodException, SecurityException;
private native int _getMethods (Method[] result, int offset);
public native Method[] getMethods () throws SecurityException;
public native int getModifiers ();