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()

Variable Index

 o ABSTRACT
 o FINAL
 o INTERFACE
 o NATIVE
 o PRIVATE
 o PROTECTED
 o PUBLIC
 o STATIC
 o SYNCHRONIZED
 o TRANSIENT
 o VOLATILE

Constructor Index

 o java.lang.reflect.Modifier()

Method Index

 o isAbstract(int)
Return true if the specifier integer includes the abstract modifier.
 o isFinal(int)
Return true if the specifier integer includes the final modifier.
 o isInterface(int)
Return true if the specifier integer includes the interface modifier.
 o isNative(int)
Return true if the specifier integer includes the native modifier.
 o isPrivate(int)
Return true if the specifier integer includes the private modifier.
 o isProtected(int)
Return true if the specifier integer includes the protected modifier.
 o isPublic(int)
Return true if the specified integer includes the public modifier.
 o isStatic(int)
Return true if the specifier integer includes the static modifier.
 o isSynchronized(int)
Return true if the specifier integer includes the synchronized modifier.
 o isTransient(int)
Return true if the specifier integer includes the transient modifier.
 o isVolatile(int)
Return true if the specifier integer includes the volatile modifier.
 o toString(int)
Return a string describing the access modifier flags in the specified modifier.

Variables

 o ABSTRACT
public static final int ABSTRACT
 o FINAL
public static final int FINAL
 o INTERFACE
public static final int INTERFACE
 o NATIVE
public static final int NATIVE
 o PRIVATE
public static final int PRIVATE
 o PROTECTED
public static final int PROTECTED
 o PUBLIC
public static final int PUBLIC
 o STATIC
public static final int STATIC
 o SYNCHRONIZED
public static final int SYNCHRONIZED
 o TRANSIENT
public static final int TRANSIENT
 o VOLATILE
public static final int VOLATILE

Constructors

 o Modifier
public Modifier()

Methods

 o isAbstract
public static boolean isAbstract(int mod)
Return true if the specifier integer includes the abstract modifier.

 o isFinal
public static boolean isFinal(int mod)
Return true if the specifier integer includes the final modifier.

 o isInterface
public static boolean isInterface(int mod)
Return true if the specifier integer includes the interface modifier.

 o isNative
public static boolean isNative(int mod)
Return true if the specifier integer includes the native modifier.

 o isPrivate
public static boolean isPrivate(int mod)
Return true if the specifier integer includes the private modifier.

 o isProtected
public static boolean isProtected(int mod)
Return true if the specifier integer includes the protected modifier.

 o isPublic
public static boolean isPublic(int mod)
Return true if the specified integer includes the public modifier.

 o isStatic
public static boolean isStatic(int mod)
Return true if the specifier integer includes the static modifier.

 o isSynchronized
public static boolean isSynchronized(int mod)
Return true if the specifier integer includes the synchronized modifier.

 o isTransient
public static boolean isTransient(int mod)
Return true if the specifier integer includes the transient modifier.

 o isVolatile
public static boolean isVolatile(int mod)
Return true if the specifier integer includes the volatile modifier.

 o 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