| java.lang.Object java.lang.reflect.Modifier
Field Summary | |
final public static int | ABSTRACT The int value representing the abstract
modifier. | final public static int | FINAL The int value representing the final
modifier. | final public static int | INTERFACE The int value representing the interface
modifier. | final public static int | NATIVE The int value representing the native
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 | PUBLIC The int value representing the public
modifier. | final public static int | STATIC The int value representing the static
modifier. | final public static int | STRICT The int value representing the strictfp
modifier. | final public static int | SYNCHRONIZED The int value representing the synchronized
modifier. | final public static int | TRANSIENT The int value representing the transient
modifier. | final public static int | VOLATILE The int value representing the volatile
modifier. |
Method Summary | |
public static boolean | isAbstract(int mod) Return true if the integer argument includes the
abstract modifer, false otherwise. | public static boolean | isFinal(int mod) Return true if the integer argument includes the
final modifer, false otherwise. | public static boolean | isInterface(int mod) Return true if the integer argument includes the
interface modifer, false otherwise. | public static boolean | isNative(int mod) Return true if the integer argument includes the
native modifer, false otherwise. | public static boolean | isPrivate(int mod) Return true if the integer argument includes the
private modifer, false otherwise. | public static boolean | isProtected(int mod) Return true if the integer argument includes the
protected modifer, false otherwise. | public static boolean | isPublic(int mod) Return true if the integer argument includes the
public modifer, false otherwise. | public static boolean | isStatic(int mod) Return true if the integer argument includes the
static modifer, false otherwise. | public static boolean | isStrict(int mod) Return true if the integer argument includes the
strictfp modifer, false otherwise. | public static boolean | isSynchronized(int mod) Return true if the integer argument includes the
synchronized modifer, false otherwise. | public static boolean | isTransient(int mod) Return true if the integer argument includes the
transient modifer, false otherwise. | public static boolean | isVolatile(int mod) Return true if the integer argument includes the
volatile modifer, false otherwise. | public static String | toString(int mod) Return a string describing the access modifier flags in
the specified modifier. |
ABSTRACT | final public static int ABSTRACT(Code) | | The int value representing the abstract
modifier.
|
FINAL | final public static int FINAL(Code) | | The int value representing the final
modifier.
|
INTERFACE | final public static int INTERFACE(Code) | | The int value representing the interface
modifier.
|
NATIVE | final public static int NATIVE(Code) | | The int value representing the native
modifier.
|
PRIVATE | final public static int PRIVATE(Code) | | The int value representing the private
modifier.
|
PROTECTED | final public static int PROTECTED(Code) | | The int value representing the protected
modifier.
|
PUBLIC | final public static int PUBLIC(Code) | | The int value representing the public
modifier.
|
STATIC | final public static int STATIC(Code) | | The int value representing the static
modifier.
|
STRICT | final public static int STRICT(Code) | | The int value representing the strictfp
modifier.
|
SYNCHRONIZED | final public static int SYNCHRONIZED(Code) | | The int value representing the synchronized
modifier.
|
TRANSIENT | final public static int TRANSIENT(Code) | | The int value representing the transient
modifier.
|
VOLATILE | final public static int VOLATILE(Code) | | The int value representing the volatile
modifier.
|
isAbstract | public static boolean isAbstract(int mod)(Code) | | Return true if the integer argument includes the
abstract modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes theabstract modifier; false otherwise. |
isFinal | public static boolean isFinal(int mod)(Code) | | Return true if the integer argument includes the
final modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thefinal modifier; false otherwise. |
isInterface | public static boolean isInterface(int mod)(Code) | | Return true if the integer argument includes the
interface modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes theinterface modifier; false otherwise. |
isNative | public static boolean isNative(int mod)(Code) | | Return true if the integer argument includes the
native modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thenative modifier; false otherwise. |
isPrivate | public static boolean isPrivate(int mod)(Code) | | Return true if the integer argument includes the
private modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes theprivate modifier; false otherwise. |
isProtected | public static boolean isProtected(int mod)(Code) | | Return true if the integer argument includes the
protected modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes theprotected modifier; false otherwise. |
isPublic | public static boolean isPublic(int mod)(Code) | | Return true if the integer argument includes the
public modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thepublic modifier; false otherwise. |
isStatic | public static boolean isStatic(int mod)(Code) | | Return true if the integer argument includes the
static modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thestatic modifier; false otherwise. |
isStrict | public static boolean isStrict(int mod)(Code) | | Return true if the integer argument includes the
strictfp modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thestrictfp modifier; false otherwise. |
isSynchronized | public static boolean isSynchronized(int mod)(Code) | | Return true if the integer argument includes the
synchronized modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thesynchronized modifier; false otherwise. |
isTransient | public static boolean isTransient(int mod)(Code) | | Return true if the integer argument includes the
transient modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thetransient modifier; false otherwise. |
isVolatile | public static boolean isVolatile(int mod)(Code) | | Return true if the integer argument includes the
volatile modifer, false otherwise.
Parameters: mod - a set of modifers true if mod includes thevolatile modifier; false otherwise. |
toString | public static String toString(int mod)(Code) | | Return a string describing the access modifier flags in
the specified modifier. For example:
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.
Parameters: mod - a set of modifers a string representation of the set of modifersrepresented by mod |
|
|