Enum Class AnnotationValueFilter.Default
java.lang.Object
java.lang.Enum<AnnotationValueFilter.Default>
net.bytebuddy.implementation.attribute.AnnotationValueFilter.Default
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationValueFilter.Default>
,Constable
,AnnotationValueFilter
,AnnotationValueFilter.Factory
- Enclosing interface:
- AnnotationValueFilter
public static enum AnnotationValueFilter.Default
extends Enum<AnnotationValueFilter.Default>
implements AnnotationValueFilter, AnnotationValueFilter.Factory
A default implementation of an annotation value filter that applies the same strategy for any type, field or method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.AnnotationValueFilter
AnnotationValueFilter.Default, AnnotationValueFilter.Factory
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn annotation value filter where default values are included in the class file.An annotation value filter where default values are skipped and not included in the class file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionon
(FieldDescription fieldDescription) Creates an annotation value filter for writing annotations on a field.on
(MethodDescription methodDescription) Creates an annotation value filter for writing annotations on a method.on
(RecordComponentDescription recordComponentDescription) Creates an annotation value filter for writing annotations on a record component.on
(TypeDescription instrumentedType) Creates an annotation value filter for writing annotations on an instrumented type.Returns the enum constant of this class with the specified name.static AnnotationValueFilter.Default[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.implementation.attribute.AnnotationValueFilter
isRelevant
-
Enum Constant Details
-
SKIP_DEFAULTS
An annotation value filter where default values are skipped and not included in the class file. -
APPEND_DEFAULTS
An annotation value filter where default values are included in the class file.
-
-
Constructor Details
-
Default
private Default()
-
-
Method Details
-
values
Returns 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
-
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.)- 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 nameNullPointerException
- if the argument is null
-
on
Creates an annotation value filter for writing annotations on an instrumented type.- Specified by:
on
in interfaceAnnotationValueFilter.Factory
- Parameters:
instrumentedType
- The instrumented type onto which the annotations are written.- Returns:
- An annotation value filter to be used when writing annotations onto the given type.
-
on
Creates an annotation value filter for writing annotations on a field.- Specified by:
on
in interfaceAnnotationValueFilter.Factory
- Parameters:
fieldDescription
- The field onto which the annotations are written.- Returns:
- An annotation value filter to be used when writing annotations onto the given field.
-
on
Creates an annotation value filter for writing annotations on a method.- Specified by:
on
in interfaceAnnotationValueFilter.Factory
- Parameters:
methodDescription
- The method onto which the annotations are written.- Returns:
- An annotation value filter to be used when writing annotations onto the given method.
-
on
Creates an annotation value filter for writing annotations on a record component.- Specified by:
on
in interfaceAnnotationValueFilter.Factory
- Parameters:
recordComponentDescription
- The record component onto which the annotations are written.- Returns:
- An annotation value filter to be used when writing annotations onto the given record component.
-