Enum Class MemberCategory
- 所有已实现的接口:
Serializable,Comparable<MemberCategory>,Constable
Predefined
Member categories.- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement, Sebastien Deleuze, Stephane Nicoll
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明A category that represents all inner classes.A category that represents declared fields: all fields defined by the class but not inherited fields.A category that defines all constructors can be introspected but not invoked.A category that defines all methods, excluding inherited ones, can be introspected but not invoked.A category that defines public constructors can be introspected but not invoked.A category that defines public methods, including inherited ones, can be introspected but not invoked.A category that defines all constructors can be invoked.A category that defines all methods, excluding inherited ones, can be invoked.A category that defines public constructors can be invoked.A category that defines public methods, including inherited ones, can be invoked.A category that represents public inner classes.A category that represents public fields. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static MemberCategoryReturns the enum constant of this class with the specified name.static MemberCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
PUBLIC_FIELDS
A category that represents public fields.- 另请参阅:
-
DECLARED_FIELDS
A category that represents declared fields: all fields defined by the class but not inherited fields. -
INTROSPECT_PUBLIC_CONSTRUCTORS
A category that defines public constructors can be introspected but not invoked. -
INTROSPECT_DECLARED_CONSTRUCTORS
A category that defines all constructors can be introspected but not invoked. -
INVOKE_PUBLIC_CONSTRUCTORS
A category that defines public constructors can be invoked. -
INVOKE_DECLARED_CONSTRUCTORS
A category that defines all constructors can be invoked. -
INTROSPECT_PUBLIC_METHODS
A category that defines public methods, including inherited ones, can be introspected but not invoked. -
INTROSPECT_DECLARED_METHODS
A category that defines all methods, excluding inherited ones, can be introspected but not invoked. -
INVOKE_PUBLIC_METHODS
A category that defines public methods, including inherited ones, can be invoked. -
INVOKE_DECLARED_METHODS
A category that defines all methods, excluding inherited ones, can be invoked. -
PUBLIC_CLASSES
A category that represents public inner classes.Contrary to other categories, this does not register any particular reflection for inner classes but rather makes sure they are available via a call to
Class.getClasses(). -
DECLARED_CLASSES
A category that represents all inner classes.Contrary to other categories, this does not register any particular reflection for inner classes but rather makes sure they are available via a call to
Class.getDeclaredClasses().
-
-
构造器详细资料
-
MemberCategory
private MemberCategory()
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-