| Enum Constant and Description |
|---|
ABSTRACT
The
int value representing the abstract modifier. |
FINAL
The
int value representing the final modifier. |
INTERFACE
The
int value representing the interface modifier. |
NATIVE
The
int value representing the native modifier. |
PRIVATE
The
int value representing the private modifier. |
PROTECTED
The
int value representing the protected modifier. |
PUBLIC
The
int value representing the public modifier. |
STATIC
The
int value representing the static modifier. |
STRICT
The
int value representing the strictfp modifier. |
SYNCHRONIZED
The
int value representing the synchronized modifier. |
TRANSIENT
The
int value representing the transient modifier. |
VOLATILE
The
int value representing the volatile modifier. |
| Modifier and Type | Method and Description |
|---|---|
int |
getModifier()
返回java.lang.reflect.Modifier对应的int值
|
boolean |
isModifier(int modifier)
判断是否是java.lang.reflect.Modifier
|
static Modifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Modifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Modifier PUBLIC
int value representing the public modifier.public static final Modifier PRIVATE
int value representing the private modifier.public static final Modifier PROTECTED
int value representing the protected modifier.public static final Modifier STATIC
int value representing the static modifier.public static final Modifier FINAL
int value representing the final modifier.public static final Modifier SYNCHRONIZED
int value representing the synchronized modifier.public static final Modifier VOLATILE
int value representing the volatile modifier.public static final Modifier TRANSIENT
int value representing the transient modifier.public static final Modifier NATIVE
int value representing the native modifier.public static final Modifier INTERFACE
int value representing the interface modifier.public static final Modifier ABSTRACT
int value representing the abstract modifier.public static final Modifier STRICT
int value representing the strictfp modifier.public static Modifier[] values()
for (Modifier c : Modifier.values()) System.out.println(c);
public static Modifier valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isModifier(int modifier)
判断是否是java.lang.reflect.Modifier
modifier - java.lang.reflect.Modifierpublic int getModifier()