corda/classpath/java/lang/reflect/Modifier.java

27 lines
1.2 KiB
Java
Raw Normal View History

2007-07-21 20:44:39 +00:00
package java.lang.reflect;
public final class Modifier {
public static final int PUBLIC = 1 << 0;
public static final int PRIVATE = 1 << 1;
public static final int PROTECTED = 1 << 2;
public static final int STATIC = 1 << 3;
public static final int FINAL = 1 << 4;
public static final int SUPER = 1 << 5;
public static final int SYNCHRONIZED = SUPER;
public static final int VOLATILE = 1 << 6;
public static final int TRANSIENT = 1 << 7;
public static final int NATIVE = 1 << 8;
public static final int INTERFACE = 1 << 9;
public static final int ABSTRACT = 1 << 10;
public static final int STRICT = 1 << 11;
private Modifier() { }
2007-07-27 02:39:53 +00:00
public static boolean isPublic (int v) { return (v & PUBLIC) != 0; }
public static boolean isPrivate (int v) { return (v & PRIVATE) != 0; }
public static boolean isProtected(int v) { return (v & PROTECTED) != 0; }
public static boolean isStatic (int v) { return (v & STATIC) != 0; }
public static boolean isFinal (int v) { return (v & FINAL) != 0; }
public static boolean isSuper (int v) { return (v & SUPER) != 0; }
2007-07-21 20:44:39 +00:00
}