API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.reflect. Modifier View Source
Author(s)
Nakul Saraiya
Kenneth Russell
Since
Version
Serial
Hierarchy
 Object
      Modifier
Implements
Subclasses
Description
public class Modifier
  The Modifier class provides static methods and constants to decode class and member access modifiers.
Constructors
public Modifier ()
Methods
Hide/Show inherited methods
publicstatic boolean isAbstract (int mod)
  Return true if the integer argument includes the abstract modifier, false otherwise.
publicstatic boolean isFinal (int mod)
  Return true if the integer argument includes the final modifier, false otherwise.
publicstatic boolean isInterface (int mod)
  Return true if the integer argument includes the interface modifier, false otherwise.
publicstatic boolean isNative (int mod)
  Return true if the integer argument includes the native modifier, false otherwise.
publicstatic boolean isPrivate (int mod)
  Return true if the integer argument includes the private modifier, false otherwise.
publicstatic boolean isProtected (int mod)
  Return true if the integer argument includes the protected modifier, false otherwise.
publicstatic boolean isPublic (int mod)
  Return true if the integer argument includes the public modifier, false otherwise.
publicstatic boolean isStatic (int mod)
  Return true if the integer argument includes the static modifier, false otherwise.
publicstatic boolean isStrict (int mod)
  Return true if the integer argument includes the strictfp modifier, false otherwise.
publicstatic boolean isSynchronized (int mod)
  Return true if the integer argument includes the synchronized modifier, false otherwise.
pack-privatestatic boolean isSynthetic (int mod)
publicstatic boolean isTransient (int mod)
  Return true if the integer argument includes the transient modifier, false otherwise.
publicstatic boolean isVolatile (int mod)
  Return true if the integer argument includes the volatile modifier, false otherwise.
publicstatic String toString (int mod)
  Return a string describing the access modifier flags in the specified modifier.
Fields
Hide/Show inherited fields
publicfinalstatic int ABSTRACT = "1024"
The int value representing the abstract modifier.
pack-privatefinalstatic int ANNOTATION = "8192"
pack-privatefinalstatic int BRIDGE = "64"
pack-privatefinalstatic int ENUM = "16384"
publicfinalstatic int FINAL = "16"
The int value representing the final modifier.
publicfinalstatic int INTERFACE = "512"
The int value representing the interface modifier.
publicfinalstatic int NATIVE = "256"
The int value representing the native modifier.
publicfinalstatic int PRIVATE = "2"
The int value representing the private modifier.
publicfinalstatic int PROTECTED = "4"
The int value representing the protected modifier.
publicfinalstatic int PUBLIC = "1"
The int value representing the public modifier.
publicfinalstatic int STATIC = "8"
The int value representing the static modifier.
publicfinalstatic int STRICT = "2048"
The int value representing the strictfp modifier.
publicfinalstatic int SYNCHRONIZED = "32"
The int value representing the synchronized modifier.
pack-privatefinalstatic int SYNTHETIC = "4096"
publicfinalstatic int TRANSIENT = "128"
The int value representing the transient modifier.
pack-privatefinalstatic int VARARGS = "128"
publicfinalstatic int VOLATILE = "64"
The int value representing the volatile modifier.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar