public enum MemberCategory extends java.lang.Enum<MemberCategory>
枚举常量和说明 |
---|
DECLARED_CLASSES
A category that represents all inner classes.
|
DECLARED_FIELDS
A category that represents declared
fields, that is all fields defined by the class, but not inherited ones.
|
INTROSPECT_DECLARED_CONSTRUCTORS
A category that defines all
constructors can be introspected, but not invoked.
|
INTROSPECT_DECLARED_METHODS
A category that defines all
methods, excluding inherited ones can be introspected, but not invoked.
|
INTROSPECT_PUBLIC_CONSTRUCTORS
A category that defines public constructors can
be introspected, but not invoked.
|
INTROSPECT_PUBLIC_METHODS
A category that defines public methods, including
inherited ones can be introspect, but not invoked.
|
INVOKE_DECLARED_CONSTRUCTORS
A category that defines all
constructors can be invoked.
|
INVOKE_DECLARED_METHODS
A category that defines all
methods, excluding inherited ones can be invoked.
|
INVOKE_PUBLIC_CONSTRUCTORS
A category that defines public constructors can
be invoked.
|
INVOKE_PUBLIC_METHODS
A category that defines public methods, including
inherited ones can be invoked.
|
PUBLIC_CLASSES
A category that represents public inner
classes.
|
PUBLIC_FIELDS
A category that represents public fields.
|
限定符和类型 | 方法和说明 |
---|---|
static MemberCategory |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MemberCategory[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MemberCategory PUBLIC_FIELDS
Class.getFields()
public static final MemberCategory DECLARED_FIELDS
Class.getDeclaredFields()
public static final MemberCategory INTROSPECT_PUBLIC_CONSTRUCTORS
Class.getConstructors()
,
ExecutableMode.INTROSPECT
public static final MemberCategory INTROSPECT_DECLARED_CONSTRUCTORS
Class.getDeclaredConstructors()
,
ExecutableMode.INTROSPECT
public static final MemberCategory INVOKE_PUBLIC_CONSTRUCTORS
Class.getConstructors()
,
ExecutableMode.INVOKE
public static final MemberCategory INVOKE_DECLARED_CONSTRUCTORS
Class.getDeclaredConstructors()
,
ExecutableMode.INVOKE
public static final MemberCategory INTROSPECT_PUBLIC_METHODS
Class.getMethods()
,
ExecutableMode.INTROSPECT
public static final MemberCategory INTROSPECT_DECLARED_METHODS
Class.getDeclaredMethods()
,
ExecutableMode.INTROSPECT
public static final MemberCategory INVOKE_PUBLIC_METHODS
Class.getMethods()
,
ExecutableMode.INVOKE
public static final MemberCategory INVOKE_DECLARED_METHODS
Class.getDeclaredMethods()
,
ExecutableMode.INVOKE
public static final MemberCategory PUBLIC_CLASSES
Class.getClasses()
.public static final MemberCategory DECLARED_CLASSES
Class.getDeclaredClasses()
.public static MemberCategory[] values()
for (MemberCategory c : MemberCategory.values()) System.out.println(c);
public static MemberCategory valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值