| 枚举常量和说明 |
|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getModifier()
返回java.lang.reflect.Modifier对应的int值
|
boolean |
isModifier(int modifier)
判断是否是java.lang.reflect.Modifier
|
static Modifier |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Modifier[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public boolean isModifier(int modifier)
判断是否是java.lang.reflect.Modifier
modifier - java.lang.reflect.Modifierpublic int getModifier()