mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
27 lines
1.2 KiB
Java
27 lines
1.2 KiB
Java
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() { }
|
|
|
|
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; }
|
|
}
|