|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.reflect.Modifier
The Modifier class provides static methods and constants to decode class and member access modifiers.
Class.getModifiers()
,
Member.getModifiers()
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 specifier integer includes the abstract modifier. |
static boolean |
isFinal(int mod)
Return true if the specified integer includes the final modifier. |
static boolean |
isInterface(int mod)
Return true if the specifier integer includes the interface modifier. |
static boolean |
isNative(int mod)
Return true if the specifier integer includes the native modifier. |
static boolean |
isPrivate(int mod)
Return true if the specifier integer includes the private modifier. |
static boolean |
isProtected(int mod)
Return true if the specifier integer includes the protected modifier. |
static boolean |
isPublic(int mod)
Return true if the specified integer includes the public modifier. |
static boolean |
isStatic(int mod)
Return true if the specifier integer includes the static modifier. |
static boolean |
isStrict(int mod)
Return true if the specifier integer includes the strictfp modifier. |
static boolean |
isSynchronized(int mod)
Return true if the specified integer includes the synchronized modifier. |
static boolean |
isTransient(int mod)
Return true if the specifier integer includes the transient modifier. |
static boolean |
isVolatile(int mod)
Return true if the specified integer includes the volatile modifier. |
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 |
Field Detail |
public static final int PUBLIC
int
value representing the public
modifier.public static final int PRIVATE
int
value representing the private
modifier.public static final int PROTECTED
int
value representing the protected
modifier.public static final int STATIC
int
value representing the static
modifier.public static final int FINAL
int
value representing the final
modifier.public static final int SYNCHRONIZED
int
value representing the synchronized
modifier.public static final int VOLATILE
int
value representing the volatile
modifier.public static final int TRANSIENT
int
value representing the transient
modifier.public static final int NATIVE
int
value representing the native
modifier.public static final int INTERFACE
int
value representing the interface
modifier.public static final int ABSTRACT
int
value representing the abstract
modifier.public static final int STRICT
int
value representing the strictfp
modifier.Constructor Detail |
public Modifier()
Method Detail |
public static boolean isPublic(int mod)
public static boolean isPrivate(int mod)
public static boolean isProtected(int mod)
public static boolean isStatic(int mod)
public static boolean isFinal(int mod)
public static boolean isSynchronized(int mod)
public static boolean isVolatile(int mod)
public static boolean isTransient(int mod)
public static boolean isNative(int mod)
public static boolean isInterface(int mod)
public static boolean isAbstract(int mod)
public static boolean isStrict(int mod)
public static String toString(int mod)
The modifier names are return in canonical order, as specified by The Java Language Specification.public final synchronized private transient volatile
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.