Example usage for Java java.lang.reflect Modifier fields, constructors, methods, implement or subclass
The text is from its open source code.
int | PUBLIC The int value representing the public modifier. |
int | PRIVATE The int value representing the private modifier. |
int | PROTECTED The int value representing the protected modifier. |
int | STATIC The int value representing the static modifier. |
int | FINAL The int value representing the final modifier. |
int | SYNCHRONIZED The int value representing the synchronized modifier. |
int | VOLATILE The int value representing the volatile modifier. |
int | TRANSIENT The int value representing the transient modifier. |
int | NATIVE The int value representing the native modifier. |
int | INTERFACE The int value representing the interface modifier. |
int | ABSTRACT The int value representing the abstract modifier. |
int | STRICT The int value representing the strictfp modifier. |
int | classModifiers() Return an int value OR-ing together the source language modifiers that can be applied to a class. |
int | constructorModifiers() Return an int value OR-ing together the source language modifiers that can be applied to a constructor. |
int | fieldModifiers() Return an int value OR-ing together the source language modifiers that can be applied to a field. |
int | interfaceModifiers() Return an int value OR-ing together the source language modifiers that can be applied to an interface. |
boolean | isAbstract(int mod) Return true if the integer argument includes the abstract modifier, false otherwise. |
boolean | isFinal(int mod) Return true if the integer argument includes the final modifier, false otherwise. |
boolean | isInterface(int mod) Return true if the integer argument includes the interface modifier, false otherwise. |
boolean | isNative(int mod) Return true if the integer argument includes the native modifier, false otherwise. |
boolean | isPrivate(int mod) Return true if the integer argument includes the private modifier, false otherwise. |
boolean | isProtected(int mod) Return true if the integer argument includes the protected modifier, false otherwise. |
boolean | isPublic(int mod) Return true if the integer argument includes the public modifier, false otherwise. |
boolean | isStatic(int mod) Return true if the integer argument includes the static modifier, false otherwise. |
boolean | isStrict(int mod) Return true if the integer argument includes the strictfp modifier, false otherwise. |
boolean | isSynchronized(int mod) Return true if the integer argument includes the synchronized modifier, false otherwise. |
boolean | isTransient(int mod) Return true if the integer argument includes the transient modifier, false otherwise. |
boolean | isVolatile(int mod) Return true if the integer argument includes the volatile modifier, false otherwise. |
int | methodModifiers() Return an int value OR-ing together the source language modifiers that can be applied to a method. |
int | parameterModifiers() Return an int value OR-ing together the source language modifiers that can be applied to a parameter. |
String | toString(int mod) Return a string describing the access modifier flags in the specified modifier. |