|
Build 1.0_r1(from source) | |||||||||
| 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
This class provides methods to decode class and member modifiers.
Class.getModifiers(),
Member.getModifiers()| Field Summary | |
|---|---|
static int |
ABSTRACT
|
(package private) static int |
ANNOTATION
|
(package private) static int |
BRIDGE
|
(package private) static int |
ENUM
|
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
|
(package private) static int |
SYNTHETIC
|
static int |
TRANSIENT
|
(package private) static int |
VARARGS
|
static int |
VOLATILE
|
| Constructor Summary | |
|---|---|
Modifier()
|
|
| Method Summary | |
|---|---|
static boolean |
isAbstract(int modifiers)
Return true if the specified modifiers contain the abstract
modifier, false otherwise. |
static boolean |
isFinal(int modifiers)
Return true if the specified modifiers contain the final
modifier, false otherwise. |
static boolean |
isInterface(int modifiers)
Return true if the specified modifiers contain the interface
modifier, false otherwise. |
static boolean |
isNative(int modifiers)
Return true if the specified modifiers contain the native
modifier, false otherwise. |
static boolean |
isPrivate(int modifiers)
Return true if the specified modifiers contain the private
modifier, false otherwise. |
static boolean |
isProtected(int modifiers)
Return true if the specified modifiers contain the protected
modifier, false otherwise. |
static boolean |
isPublic(int modifiers)
Return true if the specified modifiers contain the public
modifier, false otherwise. |
static boolean |
isStatic(int modifiers)
Return true if the specified modifiers contain the static
modifier, false otherwise. |
static boolean |
isStrict(int modifiers)
Return true if the specified modifiers contain the strict
modifier, false otherwise. |
static boolean |
isSynchronized(int modifiers)
Return true if the specified modifiers contain the synchronized modifier, false otherwise. |
static boolean |
isTransient(int modifiers)
Return true if the specified modifiers contain the transient
modifier, false otherwise. |
static boolean |
isVolatile(int modifiers)
Return true if the specified modifiers contain the volatile
modifier, false otherwise. |
static String |
toString(int modifiers)
Returns a string containing the string representation of all modifiers present in the specified modifiers. |
| 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
static final int BRIDGE
static final int VARARGS
static final int SYNTHETIC
static final int ANNOTATION
static final int ENUM
| Constructor Detail |
|---|
public Modifier()
| Method Detail |
|---|
public static boolean isAbstract(int modifiers)
abstract
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isFinal(int modifiers)
final
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isInterface(int modifiers)
interface
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isNative(int modifiers)
native
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isPrivate(int modifiers)
private
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isProtected(int modifiers)
protected
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isPublic(int modifiers)
public
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isStatic(int modifiers)
static
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isStrict(int modifiers)
strict
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isSynchronized(int modifiers)
synchronized modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isTransient(int modifiers)
transient
modifier, false otherwise.
modifiers - the modifiers to test
public static boolean isVolatile(int modifiers)
volatile
modifier, false otherwise.
modifiers - the modifiers to test
public static String toString(int modifiers)
public private protected abstract static final transient volatile native synchronized interface strict
modifiers - the modifiers to print
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||