java.lang.reflect.Modifier (JDK 1.1)
This class defines a number of constants and static methods that are used to interpret the integer values returned by the getModifiers() methods of the Field, Method, and Constructor classes. The isPublic(), isAbstract(), and related methods return true if the modifiers value includes the specified modifier, otherwise they return false.
The constants defined by this class specify the various bit flags used in the modifiers value. You can use these constants to test for modifiers if you want to perform your own boolean algebra.
public classModifierextends Object { //Default Constructor: public Modifier()//Constantspublic static final intABSTRACT; public static final intFINAL; public static final intINTERFACE; public static final intNATIVE; public static final intPRIVATE; public static final intPROTECTED; public static final intPUBLIC; public static final intSTATIC; public static final intSYNCHRONIZED; public static final intTRANSIENT; public static final intVOLATILE; //Class Methodspublic static booleanisAbstract(intmod); public static booleanisFinal(intmod); public static booleanisInterface(intmod); public static booleanisNative(intmod); public static booleanisPrivate(intmod); public static booleanisProtected(intmod); public static booleanisPublic(intmod); public static booleanisStatic(intmod); public static booleanisSynchronized(intmod); public static booleanisTransient(intmod); public static booleanisVolatile(intmod); public static StringtoString(intmod); }