Class java.lang.reflect.Modifier
All Packages Class Hierarchy This Package Previous Next Index
Class java.lang.reflect.Modifier
Object
|
+----java.lang.reflect.Modifier
- public class Modifier
- extends Object
The Modifier class provides static methods and constants to decode
class and member access modifiers.
- Author:
- Nakul Saraiya
- See Also:
- getModifiers(), getModifiers()
-
ABSTRACT
-
-
FINAL
-
-
INTERFACE
-
-
NATIVE
-
-
PRIVATE
-
-
PROTECTED
-
-
PUBLIC
-
-
STATIC
-
-
SYNCHRONIZED
-
-
TRANSIENT
-
-
VOLATILE
-
-
java.lang.reflect.Modifier()
-
-
isAbstract(int)
- Return true if the specifier integer includes the abstract
modifier.
-
isFinal(int)
- Return true if the specifier integer includes the final
modifier.
-
isInterface(int)
- Return true if the specifier integer includes the interface
modifier.
-
isNative(int)
- Return true if the specifier integer includes the native
modifier.
-
isPrivate(int)
- Return true if the specifier integer includes the private
modifier.
-
isProtected(int)
- Return true if the specifier integer includes the protected
modifier.
-
isPublic(int)
- Return true if the specified integer includes the public
modifier.
-
isStatic(int)
- Return true if the specifier integer includes the static
modifier.
-
isSynchronized(int)
- Return true if the specifier integer includes the synchronized
modifier.
-
isTransient(int)
- Return true if the specifier integer includes the transient
modifier.
-
isVolatile(int)
- Return true if the specifier integer includes the volatile
modifier.
-
toString(int)
- Return a string describing the access modifier flags in
the specified modifier.
ABSTRACT
public static final int ABSTRACT
FINAL
public static final int FINAL
INTERFACE
public static final int INTERFACE
NATIVE
public static final int NATIVE
PRIVATE
public static final int PRIVATE
PROTECTED
public static final int PROTECTED
PUBLIC
public static final int PUBLIC
STATIC
public static final int STATIC
SYNCHRONIZED
public static final int SYNCHRONIZED
TRANSIENT
public static final int TRANSIENT
VOLATILE
public static final int VOLATILE
Modifier
public Modifier()
isAbstract
public static boolean isAbstract(int mod)
- Return true if the specifier integer includes the abstract
modifier.
isFinal
public static boolean isFinal(int mod)
- Return true if the specifier integer includes the final
modifier.
isInterface
public static boolean isInterface(int mod)
- Return true if the specifier integer includes the interface
modifier.
isNative
public static boolean isNative(int mod)
- Return true if the specifier integer includes the native
modifier.
isPrivate
public static boolean isPrivate(int mod)
- Return true if the specifier integer includes the private
modifier.
isProtected
public static boolean isProtected(int mod)
- Return true if the specifier integer includes the protected
modifier.
isPublic
public static boolean isPublic(int mod)
- Return true if the specified integer includes the public
modifier.
isStatic
public static boolean isStatic(int mod)
- Return true if the specifier integer includes the static
modifier.
isSynchronized
public static boolean isSynchronized(int mod)
- Return true if the specifier integer includes the synchronized
modifier.
isTransient
public static boolean isTransient(int mod)
- Return true if the specifier integer includes the transient
modifier.
isVolatile
public static boolean isVolatile(int mod)
- Return true if the specifier integer includes the volatile
modifier.
toString
public static java.lang.String toString(int mod)
- Return a string describing the access modifier flags in
the specified modifier. For example:
public final synchronized
private transient volatile
The modifier names are return in canonical order, as
specified by The Java Language Specification.
All Packages Class Hierarchy This Package Previous Next Index