| Method from java.lang.reflect.Modifier Detail: |
public static boolean isAbstract(int mod) {
return (mod & ABSTRACT) != 0;
}
Return {@code true} if the integer argument includes the
{@code abstract} modifier, {@code false} otherwise. |
public static boolean isFinal(int mod) {
return (mod & FINAL) != 0;
}
Return {@code true} if the integer argument includes the
{@code final} modifier, {@code false} otherwise. |
public static boolean isInterface(int mod) {
return (mod & INTERFACE) != 0;
}
Return {@code true} if the integer argument includes the
{@code interface} modifier, {@code false} otherwise. |
public static boolean isNative(int mod) {
return (mod & NATIVE) != 0;
}
Return {@code true} if the integer argument includes the
{@code native} modifier, {@code false} otherwise. |
public static boolean isPrivate(int mod) {
return (mod & PRIVATE) != 0;
}
Return {@code true} if the integer argument includes the
{@code private} modifier, {@code false} otherwise. |
public static boolean isProtected(int mod) {
return (mod & PROTECTED) != 0;
}
Return {@code true} if the integer argument includes the
{@code protected} modifier, {@code false} otherwise. |
public static boolean isPublic(int mod) {
sun.reflect.ReflectionFactory factory =
AccessController.doPrivileged(
new ReflectionFactory.GetReflectionFactoryAction());
factory.setLangReflectAccess(new java.lang.reflect.ReflectAccess());
return (mod & PUBLIC) != 0;
}
Return {@code true} if the integer argument includes the
{@code public} modifier, {@code false} otherwise. |
public static boolean isStatic(int mod) {
return (mod & STATIC) != 0;
}
Return {@code true} if the integer argument includes the
{@code static} modifier, {@code false} otherwise. |
public static boolean isStrict(int mod) {
return (mod & STRICT) != 0;
}
Return {@code true} if the integer argument includes the
{@code strictfp} modifier, {@code false} otherwise. |
public static boolean isSynchronized(int mod) {
return (mod & SYNCHRONIZED) != 0;
}
Return {@code true} if the integer argument includes the
{@code synchronized} modifier, {@code false} otherwise. |
static boolean isSynthetic(int mod) {
return (mod & SYNTHETIC) != 0;
}
|
public static boolean isTransient(int mod) {
return (mod & TRANSIENT) != 0;
}
Return {@code true} if the integer argument includes the
{@code transient} modifier, {@code false} otherwise. |
public static boolean isVolatile(int mod) {
return (mod & VOLATILE) != 0;
}
Return {@code true} if the integer argument includes the
{@code volatile} modifier, {@code false} otherwise. |
public static String toString(int mod) {
StringBuffer sb = new StringBuffer();
int len;
if ((mod & PUBLIC) != 0) sb.append("public ");
if ((mod & PROTECTED) != 0) sb.append("protected ");
if ((mod & PRIVATE) != 0) sb.append("private ");
/* Canonical order */
if ((mod & ABSTRACT) != 0) sb.append("abstract ");
if ((mod & STATIC) != 0) sb.append("static ");
if ((mod & FINAL) != 0) sb.append("final ");
if ((mod & TRANSIENT) != 0) sb.append("transient ");
if ((mod & VOLATILE) != 0) sb.append("volatile ");
if ((mod & SYNCHRONIZED) != 0) sb.append("synchronized ");
if ((mod & NATIVE) != 0) sb.append("native ");
if ((mod & STRICT) != 0) sb.append("strictfp ");
if ((mod & INTERFACE) != 0) sb.append("interface ");
if ((len = sb.length()) > 0) /* trim trailing space */
return sb.toString().substring(0, len-1);
return "";
}
|