|
|
|||||||||
| 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
Modifiers defines access flags that modify classes or their members.
| Field Summary | |
|---|---|
static int |
ABSTRACT
Modifier flag for abstract classes or methods classes. |
static int |
FINAL
Modifier flag for final (non-overwritable, non redefinable or non extendible) members or classes. |
static int |
INTERFACE
Modifier flag for interface classes. |
static int |
NATIVE
Modifier flag for native (non-Java) methods and constructors. |
static int |
PRIVATE
Modifier flag for private visibility. |
static int |
PROTECTED
Modifier flag for protected visibility. |
static int |
PUBLIC
Modifier flag for public visibility. |
static int |
STATIC
Modifier flag for static (non-instance) members. |
static int |
STRICT
Modifier flag for strict floating point semantic methods or constructors. |
static int |
SYNCHRONIZED
Modifier flag for synchronized methods and constructors. |
static int |
TRANSIENT
Modifier flag for transient (non-serialized) fields. |
static int |
VOLATILE
Modifier flag for volatile fields. |
| Constructor Summary | |
|---|---|
Modifier()
Pretty useless constructor, this class does not declare any instance methods. |
|
| Method Summary | |
|---|---|
static boolean |
isAbstract(int mod)
Test if given modifiers include the ABSTRACT flag. |
static boolean |
isFinal(int mod)
Test if given modifiers include the FINAL flag. |
static boolean |
isInterface(int mod)
Test if given modifiers include the INTERFACE flag. |
static boolean |
isNative(int mod)
Test if given modifiers include the NATIVE flag. |
static boolean |
isPrivate(int mod)
Test if given modifiers include the PRIVATE flag. |
static boolean |
isProtected(int mod)
Test if given modifiers include the PROTECTED flag. |
static boolean |
isPublic(int mod)
Test if given modifiers include the PUBLIC flag. |
static boolean |
isStatic(int mod)
Test if given modifiers include the STATIC flag. |
static boolean |
isStrict(int mod)
Test if given modifiers include the STRICT flag. |
static boolean |
isSynchronized(int mod)
Test if given modifiers include the SYNCHRONIZED flag. |
static boolean |
isTransient(int mod)
Test if given modifiers include the TRANSIENT flag. |
static boolean |
isVolatile(int mod)
Test if given modifiers include the VOLATILE flag. |
static String |
toString(int mod)
Create a space separated string representation of the given modifiers in the order public, protected, private, abstract, static, final, transient, volatile, synchronized, native, strictfp, interface. |
| 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
public static final int PRIVATE
public static final int PROTECTED
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int INTERFACE
public static final int ABSTRACT
public static final int STRICT
| Constructor Detail |
|---|
public Modifier()
| Method Detail |
|---|
public static boolean isPublic(int mod)
mod - the modifiers
public static boolean isPrivate(int mod)
mod - the modifiers
public static boolean isProtected(int mod)
mod - the modifiers
public static boolean isStatic(int mod)
mod - the modifiers
public static boolean isFinal(int mod)
mod - the modifiers
public static boolean isSynchronized(int mod)
mod - the modifiers
public static boolean isVolatile(int mod)
mod - the modifiers
public static boolean isTransient(int mod)
mod - the modifiers
public static boolean isNative(int mod)
mod - the modifiers
public static boolean isInterface(int mod)
mod - the modifiers
public static boolean isAbstract(int mod)
mod - the modifiers
public static boolean isStrict(int mod)
mod - the modifiers
public static String toString(int mod)
ensures
(result.equals(result.trim()));
mod - the modifier set.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||