Modifier.java (ALL_FLAGS): New constant.

* java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
	* resolve.cc: Removed constants defined by
	java.lang.reflect.Modifier.
	Include <java/lang/reflect/Modifier.h>.
	(_Jv_ResolvePoolEntry): Use values from Modifier.
	(_Jv_DetermineVTableIndex): Likewise.
	(_Jv_PrepareClass): Likewise.
	(ncode): Likewise.
	* defineclass.cc (_Jv_ClassReader): Removed constants defined by
	java.lang.reflect.Modifier.
	Include <java/lang/reflect/Modifier.h>.
	(checkExtends): Use values from Modifier.
	(checkImplements): Likewise.
	(handleField): Likewise.
	(handleConstantValueAttribute): Likewise.
	(handleFieldsEnd): Likewise.
	(handleMethod ): Likewise.
	(handleMethodsEnd): Likewise.
	(handleClassBegin): Likewise.
	* interpret.cc: Removed constants defined by
	java.lang.reflect.Modifier.
	(continue1): Use values from Modifier.
	* java/lang/natClassLoader.cc: Removed constants defined by
	java.lang.reflect.Modifier.

From-SVN: r29037
This commit is contained in:
Tom Tromey 1999-09-01 22:02:20 +00:00 committed by Tom Tromey
parent c7f9c6f5e3
commit e409a2c8f4
6 changed files with 122 additions and 105 deletions

View file

@ -35,6 +35,9 @@ public class Modifier
public static final int INTERFACE = 0x200;
public static final int ABSTRACT = 0x400;
// This is only used by the C++ code, so it is not public.
static final int ALL_FLAGS = 0x7ff;
public static boolean isAbstract (int mod)
{
return (mod & ABSTRACT) != 0;