- public static final int PUBLIC = 0x001;
- public static final int PRIVATE = 0x002;
- public static final int PROTECTED = 0x004;
- public static final int STATIC = 0x008;
- public static final int FINAL = 0x010;
- public static final int SYNCHRONIZED = 0x020;
- public static final int VOLATILE = 0x040;
- public static final int TRANSIENT = 0x080;
- public static final int NATIVE = 0x100;
- public static final int INTERFACE = 0x200;
- public static final int ABSTRACT = 0x400;
- public static final int STRICT = 0x800;
-
- // This is only used by the C++ code, so it is not public.
+ /** <STRONG>This constructor really shouldn't be here ... there are no
+ * instance methods or variables of this class, so instantiation is
+ * worthless. However, this function is in the 1.1 spec, so it is added
+ * for completeness.</STRONG>
+ */
+ public Modifier() {}
+
+ /** Public: accessible from any other class. **/
+ public static final int PUBLIC = 0x0001;
+
+ /** Private: accessible only from the declaring class. **/
+ public static final int PRIVATE = 0x0002;
+
+ /** Protected: accessible only to subclasses. **/
+ public static final int PROTECTED = 0x0004;
+
+ /** Static: field or method - can be accessed or invoked without an
+ instance of the declaring class. **/
+ public static final int STATIC = 0x0008;
+
+ /** Final:<BR>
+ * <UL>
+ * <LI> Class: no subclasses allowed. </LI>
+ * <LI> Field: cannot be changed. </LI>
+ * <LI> Method: cannot be overriden. </LI>
+ * </UL>
+ */
+ public static final int FINAL = 0x0010;
+
+ /** Synchronized: lock the class while calling this method. **/
+ public static final int SYNCHRONIZED = 0x0020;
+
+ /** Volatile: cannot be cached.<P> **/
+ public static final int VOLATILE = 0x0040;
+
+ /** Transient: not serialized or deserialized. **/
+ public static final int TRANSIENT = 0x0080;
+
+ /** Native: use JNI to call this method. **/
+ public static final int NATIVE = 0x0100;
+
+ /** Interface: is an interface. **/
+ public static final int INTERFACE = 0x0200;
+
+ /** Abstract: class - may not be instantiated;
+ method - may not be called. **/
+ public static final int ABSTRACT = 0x0400;
+
+ /** Class or method - expressions are FP-strict. **/
+ public static final int STRICT = 0x0800;
+
+
+ /* NOTE: THIS IS HERE BECAUSE IT IS IN THE VM SPEC.
+ I INCLUDE IT FOR COMPLETENESS. IT ATTACHES TO A CLASS AND MEANS
+ "Treat superclasses specially in invokespecial". Note that it is the
+ same as synchronized. Reuse of the constant. *shudder* */
+ private static final int SUPER = 0x0020;
+
+ // This can only used by other code in this package, so it is not public.