Java Platform 1.2
Beta 4

Class java.lang.reflect.Modifier

java.lang.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.

See Also:
Class.getModifiers(), Member.getModifiers()

Field Summary
static int ABSTRACT
           
static int EXPLICIT
           
static int FINAL
           
static int INTERFACE
           
static int NATIVE
           
static int PRIVATE
           
static int PROTECTED
           
static int PUBLIC
           
static int STATIC
           
static int STRICT
           
static int SYNCHRONIZED
           
static int TRANSIENT
           
static int VOLATILE
           
 
Constructor Summary
Modifier()
           
 
Method Summary
static boolean isAbstract(int mod)
          Return true if the specifier integer includes the abstract modifier.
static boolean isExplicit(int mod)
          Return true if the specifier integer includes the explicit 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 strict 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

public static final int PUBLIC

PRIVATE

public static final int PRIVATE

PROTECTED

public static final int PROTECTED

STATIC

public static final int STATIC

FINAL

public static final int FINAL

SYNCHRONIZED

public static final int SYNCHRONIZED

VOLATILE

public static final int VOLATILE

TRANSIENT

public static final int TRANSIENT

NATIVE

public static final int NATIVE

INTERFACE

public static final int INTERFACE

ABSTRACT

public static final int ABSTRACT

STRICT

public static final int STRICT

EXPLICIT

public static final int EXPLICIT
Constructor Detail

Modifier

public Modifier()
Method Detail

isPublic

public static boolean isPublic(int mod)
Return true if the specified integer includes the public 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.

isStatic

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

isFinal

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

isSynchronized

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

isVolatile

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

isTransient

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

isNative

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

isInterface

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

isAbstract

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

isStrict

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

isExplicit

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

toString

public static 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.

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.