| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.reflect.Modifier
public class Modifier
The Modifier class provides static methods and
 constants to decode class and member access modifiers.  The sets of
 modifiers are represented as integers with distinct bit positions
 representing different modifiers.  The values for the constants
 representing the modifiers are taken from The
 JavaTM Virtual Machine Specification, Second
 edition tables 
 4.1,
 4.4,
 4.5, and 
 4.7.
Class.getModifiers(), 
Member.getModifiers()| Field Summary | |
|---|---|
| static int | ABSTRACTThe intvalue representing theabstractmodifier. | 
| static int | FINALThe intvalue representing thefinalmodifier. | 
| static int | INTERFACEThe intvalue representing theinterfacemodifier. | 
| static int | NATIVEThe intvalue representing thenativemodifier. | 
| static int | PRIVATEThe intvalue representing theprivatemodifier. | 
| static int | PROTECTEDThe intvalue representing theprotectedmodifier. | 
| static int | PUBLICThe intvalue representing thepublicmodifier. | 
| static int | STATICThe intvalue representing thestaticmodifier. | 
| static int | STRICTThe intvalue representing thestrictfpmodifier. | 
| static int | SYNCHRONIZEDThe intvalue representing thesynchronizedmodifier. | 
| static int | TRANSIENTThe intvalue representing thetransientmodifier. | 
| static int | VOLATILEThe intvalue representing thevolatilemodifier. | 
| Constructor Summary | |
|---|---|
| Modifier() | |
| Method Summary | |
|---|---|
| static boolean | isAbstract(int mod)Return true if the integer argument includes the abstract modifier, false otherwise. | 
| static boolean | isFinal(int mod)Return true if the integer argument includes the final modifier, false otherwise. | 
| static boolean | isInterface(int mod)Return true if the integer argument includes the interface modifier, false otherwise. | 
| static boolean | isNative(int mod)Return true if the integer argument includes the native modifier, false otherwise. | 
| static boolean | isPrivate(int mod)Return true if the integer argument includes the private modifier, false otherwise. | 
| static boolean | isProtected(int mod)Return true if the integer argument includes the protected modifier, false otherwise. | 
| static boolean | isPublic(int mod)Return true if the integer argument includes the public modifier, false otherwise. | 
| static boolean | isStatic(int mod)Return true if the integer argument includes the static modifier, false otherwise. | 
| static boolean | isStrict(int mod)Return true if the integer argument includes the strictfp modifier, false otherwise. | 
| static boolean | isSynchronized(int mod)Return true if the integer argument includes the synchronized modifier, false otherwise. | 
| static boolean | isTransient(int mod)Return true if the integer argument includes the transient modifier, false otherwise. | 
| static boolean | isVolatile(int mod)Return true if the integer argument includes the volatile modifier, false otherwise. | 
| 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)
mod - a set of modifiers
mod includes the
 public modifier; false otherwise.public static boolean isPrivate(int mod)
mod - a set of modifiers
mod includes the
 private modifier; false otherwise.public static boolean isProtected(int mod)
mod - a set of modifiers
mod includes the
 protected modifier; false otherwise.public static boolean isStatic(int mod)
mod - a set of modifiers
mod includes the
 static modifier; false otherwise.public static boolean isFinal(int mod)
mod - a set of modifiers
mod includes the
 final modifier; false otherwise.public static boolean isSynchronized(int mod)
mod - a set of modifiers
mod includes the
 synchronized modifier; false otherwise.public static boolean isVolatile(int mod)
mod - a set of modifiers
mod includes the
 volatile modifier; false otherwise.public static boolean isTransient(int mod)
mod - a set of modifiers
mod includes the
 transient modifier; false otherwise.public static boolean isNative(int mod)
mod - a set of modifiers
mod includes the
 native modifier; false otherwise.public static boolean isInterface(int mod)
mod - a set of modifiers
mod includes the
 interface modifier; false otherwise.public static boolean isAbstract(int mod)
mod - a set of modifiers
mod includes the
 abstract modifier; false otherwise.public static boolean isStrict(int mod)
mod - a set of modifiers
mod includes the
 strictfp modifier; false otherwise.public static String toString(int mod)
    public final synchronized strictfp
   
 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.
mod - a set of modifiers
mod| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.