Package com.fasterxml.classmate
Enum AnnotationInclusion
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationInclusion>
Enumeration that defines different settings for handling behavior
of individual annotations
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue that indicates that annotation is to be ignored, not included in resolved bean information.Value that indicates that annotation is to be included in results; and values from overridden members are also inherited if not overridden by members of subtypes.Value that indicates that annotation is to be included in results, and values from overridden members are inherited only if the annotation is marked with theInherited
annotation.Value that indicates that annotation is to be included in results, but only if directly associated with included member (or attached mix-in); will not inherit from supertypes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationInclusion
Returns the enum constant of this type with the specified name.static AnnotationInclusion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DONT_INCLUDE
Value that indicates that annotation is to be ignored, not included in resolved bean information. Applicable to all member types. -
INCLUDE_BUT_DONT_INHERIT
Value that indicates that annotation is to be included in results, but only if directly associated with included member (or attached mix-in); will not inherit from supertypes. Applicable only to member methods; if used with other members will mean basic inclusion. -
INCLUDE_AND_INHERIT_IF_INHERITED
Value that indicates that annotation is to be included in results, and values from overridden members are inherited only if the annotation is marked with theInherited
annotation. Applicable only to member methods; if used with other members will mean basic inclusion. -
INCLUDE_AND_INHERIT
Value that indicates that annotation is to be included in results; and values from overridden members are also inherited if not overridden by members of subtypes. Note that inheritance only matters with member methods; for other types it just means "include".
-
-
Constructor Details
-
AnnotationInclusion
private AnnotationInclusion()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-