| public class java.lang.reflect Modifier
|
Java SE 6 |
static 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.
| See also | getModifiers(), getModifiers() |
| Fields | |
|---|---|
| final public static int | PUBLIC The int value representing the public
modifier.
|
| final public static int | PRIVATE The int value representing the private
modifier.
|
| final public static int | PROTECTED The int value representing the protected
modifier.
|
| final public static int | STATIC The int value representing the static
modifier.
|
| final public static int | FINAL The int value representing the final
modifier.
|
| final public static int | SYNCHRONIZED The int value representing the synchronized
modifier.
|
| final public static int | VOLATILE The int value representing the volatile
modifier.
|
| final public static int | TRANSIENT The int value representing the transient
modifier.
|
| final public static int | NATIVE The int value representing the native
modifier.
|
| final public static int | INTERFACE The int value representing the interface
modifier.
|
| final public static int | ABSTRACT The int value representing the abstract
modifier.
|
| final public static int | STRICT The int value representing the strictfp
modifier.
|
| Constructors | |
|---|---|
| public | Modifier() |
| Methods | |||||
|---|---|---|---|---|---|
| public static String | toString(int mod) Details
Return a string describing the access modifier flags in
the specified modifier. For example:
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:
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.
| ||||
| Properties | |||||
|---|---|---|---|---|---|
| public static boolean | isAbstract(int mod) Details
Return true if the integer argument includes the
abstract modifier, false otherwise.
| ||||
| public static boolean | isFinal(int mod) Details
Return true if the integer argument includes the
final modifier, false otherwise.
| ||||
| public static boolean | isInterface(int mod) Details
Return true if the integer argument includes the
interface modifier, false otherwise.
| ||||
| public static boolean | isNative(int mod) Details
Return true if the integer argument includes the
native modifier, false otherwise.
| ||||
| public static boolean | isPrivate(int mod) Details
Return true if the integer argument includes the
private modifier, false otherwise.
| ||||
| public static boolean | isProtected(int mod) Details
Return true if the integer argument includes the
protected modifier, false otherwise.
| ||||
| public static boolean | isPublic(int mod) Details
Return true if the integer argument includes the
public modifier, false otherwise.
| ||||
| public static boolean | isStatic(int mod) Details
Return true if the integer argument includes the
static modifier, false otherwise.
| ||||
| public static boolean | isStrict(int mod) Details
Return true if the integer argument includes the
strictfp modifier, false otherwise.
| ||||
| public static boolean | isSynchronized(int mod) Details
Return true if the integer argument includes the
synchronized modifier, false otherwise.
| ||||
| public static boolean | isTransient(int mod) Details
Return true if the integer argument includes the
transient modifier, false otherwise.
| ||||
| public static boolean | isVolatile(int mod) Details
Return true if the integer argument includes the
volatile modifier, false otherwise.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|