Enum Class MemberCategory
- All Implemented Interfaces:
- Serializable, Comparable<MemberCategory>, Constable
Predefined 
Member categories.- Since:
- 6.0
- Author:
- Andy Clement, Sebastien Deleuze, Stephane Nicoll
- 
Nested Class SummaryNested classes/interfaces inherited from class EnumEnum.EnumDesc<E>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionA category that represents reflective field access on declared fields: all fields defined by the class but not inherited fields.A category that represents reflective field access on public fields..Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.in favor ofACCESS_DECLARED_FIELDSwith similar semantics.Deprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.Deprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is added by default whenadding a reflection hint for a type.Deprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.Deprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is added by default whenadding a reflection hint for a type.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.Deprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.Deprecated, for removal: This API element is subject to removal in a future version.in favor ofACCESS_PUBLIC_FIELDSwith similar semantics.A category that represents the need forunsafe allocationfor this type.
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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.
- 
Enum Constant Details- 
PUBLIC_FIELDSDeprecated, for removal: This API element is subject to removal in a future version.in favor ofACCESS_PUBLIC_FIELDSwith similar semantics.A category that represents reflective field access on public fields.- See Also:
 
- 
DECLARED_FIELDSDeprecated, for removal: This API element is subject to removal in a future version.in favor ofACCESS_DECLARED_FIELDSwith similar semantics.A category that represents reflective field access on declared fields: all fields defined by the class but not inherited fields.- See Also:
 
- 
ACCESS_PUBLIC_FIELDSA category that represents reflective field access on public fields..- Since:
- 7.0
- See Also:
 
- 
ACCESS_DECLARED_FIELDSA category that represents reflective field access on declared fields: all fields defined by the class but not inherited fields.- Since:
- 7.0
- See Also:
 
- 
INTROSPECT_PUBLIC_CONSTRUCTORS@Deprecated(since="7.0", forRemoval=true) public static final MemberCategory INTROSPECT_PUBLIC_CONSTRUCTORSDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.A category that defines public constructors can be introspected but not invoked.- See Also:
 
- 
INTROSPECT_DECLARED_CONSTRUCTORS@Deprecated(since="7.0", forRemoval=true) public static final MemberCategory INTROSPECT_DECLARED_CONSTRUCTORSDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.A category that defines all constructors can be introspected but not invoked.- See Also:
 
- 
INVOKE_PUBLIC_CONSTRUCTORSA category that defines public constructors can be invoked.- See Also:
 
- 
INVOKE_DECLARED_CONSTRUCTORSA category that defines all constructors can be invoked.- See Also:
 
- 
INTROSPECT_PUBLIC_METHODS@Deprecated(since="7.0", forRemoval=true) public static final MemberCategory INTROSPECT_PUBLIC_METHODSDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is added by default whenadding a reflection hint for a type.A category that defines public methods, including inherited ones, can be introspected but not invoked.- See Also:
 
- 
INTROSPECT_DECLARED_METHODS@Deprecated(since="7.0", forRemoval=true) public static final MemberCategory INTROSPECT_DECLARED_METHODSDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is added by default whenadding a reflection hint for a type.A category that defines all methods, excluding inherited ones, can be introspected but not invoked.- See Also:
 
- 
INVOKE_PUBLIC_METHODSA category that defines public methods, including inherited ones, can be invoked.- See Also:
 
- 
INVOKE_DECLARED_METHODSA category that defines all methods, excluding inherited ones, can be invoked.- See Also:
 
- 
PUBLIC_CLASSESDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.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_CLASSESDeprecated, for removal: This API element is subject to removal in a future version.with no replacement since introspection is included whenadding a reflection hint for a type.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().
- 
UNSAFE_ALLOCATEDA category that represents the need forunsafe allocationfor this type.- Since:
- 6.2.1
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns 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.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
adding a reflection hint for a type.