java.lang.reflect.Modifierstatic methods and
constants to decode class and member access modifiers. The sets of
modifiers are represented as integers with distinct bit positions
representing different modifiers. The values for the constants
representing the modifiers are taken from The
JavaTM Virtual Machine Specification, Second
edition tables
4.1,
4.4,
4.5, and
4.7.| Field Summary | ||
static int |
ABSTRACT The int value representing the abstract
modifier. |
|
static int |
FINAL The int value representing the final
modifier. |
|
static int |
INTERFACE The int value representing the interface
modifier. |
|
static int |
NATIVE The int value representing the native
modifier. |
|
static int |
PRIVATE The int value representing the private
modifier. |
|
static int |
PROTECTED The int value representing the protected
modifier. |
|
static int |
PUBLIC The int value representing the public
modifier. |
|
static int |
STATIC The int value representing the static
modifier. |
|
static int |
STRICT The int value representing the strictfp
modifier. |
|
static int |
SYNCHRONIZED The int value representing the synchronized
modifier. |
|
static int |
TRANSIENT The int value representing the transient
modifier. |
|
static int |
VOLATILE The int value representing the volatile
modifier. |
|
| Constructor Summary | ||
| Modifier() |
| Method Summary | ||
static boolean |
isAbstract(int mod) Return true if the integer argument includes the
abstract modifier, false otherwise. |
|
static boolean |
isFinal(int mod) Return true if the integer argument includes the
final modifier, false otherwise. |
|
static boolean |
isInterface(int mod) Return true if the integer argument includes the
interface modifier, false otherwise. |
|
static boolean |
isNative(int mod) Return true if the integer argument includes the
native modifier, false otherwise. |
|
static boolean |
isPrivate(int mod) Return true if the integer argument includes the
private modifier, false otherwise. |
|
static boolean |
isProtected(int mod) Return true if the integer argument includes the
protected modifier, false otherwise. |
|
static boolean |
isPublic(int mod) Return true if the integer argument includes the
public modifier, false otherwise. |
|
static boolean |
isStatic(int mod) Return true if the integer argument includes the
static modifier, false otherwise. |
|
static boolean |
isStrict(int mod) Return true if the integer argument includes the
strictfp modifier, false otherwise. |
|
static boolean |
isSynchronized(int mod) Return true if the integer argument includes the
synchronized modifier, false otherwise. |
|
static boolean |
isTransient(int mod) Return true if the integer argument includes the
transient modifier, false otherwise. |
|
static boolean |
isVolatile(int mod) Return true if the integer argument includes the
volatile modifier, false otherwise. |
|
static String |
toString(int mod) Return a string describing the access modifier flags in
the specified modifier. |
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
int value representing the public
modifier.int value representing the private
modifier.int value representing the protected
modifier.int value representing the static
modifier.int value representing the final
modifier.int value representing the synchronized
modifier.int value representing the volatile
modifier.int value representing the transient
modifier.int value representing the native
modifier.int value representing the interface
modifier.int value representing the abstract
modifier.int value representing the strictfp
modifier.mod includes the
public modifier; false otherwise.mod includes the
private modifier; false otherwise.mod includes the
protected modifier; false otherwise.mod includes the
static modifier; false otherwise.mod includes the
final modifier; false otherwise.mod includes the
synchronized modifier; false otherwise.mod includes the
volatile modifier; false otherwise.mod includes the
transient modifier; false otherwise.mod includes the
native modifier; false otherwise.mod includes the
interface modifier; false otherwise.mod includes the
abstract modifier; false otherwise.mod includes the
strictfp modifier; false otherwise.
public final synchronized strictfp
The modifier names are returned in an order consistent with the
suggested modifier orderings given in The
Java Language Specification, Second Edition sections
§8.1.1,
§8.3.1,
§8.4.3,
§8.8.3, and
§9.1.1.
The full modifier ordering used by this method is:
public protected private abstract static final transient
volatile synchronized native strictfp
interface
The interface modifier discussed in this class is
not a true modifier in the Java language and it appears after
all other modifiers listed by this method. This method may
return a string of modifiers that are not valid modifiers of a
Java entity; in other words, no checking is done on the
possible validity of the combination of modifiers represented
by the input.mod