| Modifier and Type | Class and Description |
|---|---|
| public static enum | AnnotationValueFilter.Default
A default implementation of an annotation value filter that applies the same strategy for any type, field or method. |
| public static interface | AnnotationValueFilter.Factory
A factory for creating an annotation value filter for an annotation's target. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the value should be written to the annotation.The annotation value that is being written. annotationDescription, MethodDescription.The annotation method of which a value is being written. methodDescriptionChecks if the given annotation value should be written as the value of the provided annotation property. |
| isRelevant | back to summary |
|---|---|
| public boolean isRelevant(AnnotationDescription annotationDescription, MethodDescription. Checks if the given annotation value should be written as the value of the provided annotation property.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AnnotationValueFilter. | APPEND_DEFAULTS
An annotation value filter where default values are included in the class file. |
| public static final AnnotationValueFilter. | SKIP_DEFAULTS
An annotation value filter where default values are skipped and not included in the class file. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationValueFilter | on(TypeDescription
The instrumented type onto which the annotations are written. instrumentedType)Implements net. |
| public AnnotationValueFilter | on(FieldDescription
The field onto which the annotations are written. fieldDescription)Implements net. |
| public AnnotationValueFilter | on(MethodDescription
The method onto which the annotations are written. methodDescription)Implements net. |
| public AnnotationValueFilter | on(RecordComponentDescription
The record component onto which the annotations are written. recordComponentDescription)Implements net. |
| public static AnnotationValueFilter. | |
| public static AnnotationValueFilter. |
| APPEND_DEFAULTS | back to summary |
|---|---|
| public static final AnnotationValueFilter. An annotation value filter where default values are included in the class file. | |
| SKIP_DEFAULTS | back to summary |
|---|---|
| public static final AnnotationValueFilter. An annotation value filter where default values are skipped and not included in the class file. | |
| Default | back to summary |
|---|---|
| private Default() | |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(TypeDescription instrumentedType) Implements net. Doc from net. Creates an annotation value filter for writing annotations on an instrumented type.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(FieldDescription fieldDescription) Implements net. Doc from net. Creates an annotation value filter for writing annotations on a field.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(MethodDescription methodDescription) Implements net. Doc from net. Creates an annotation value filter for writing annotations on a method.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(RecordComponentDescription recordComponentDescription) Implements net. Doc from net. Creates an annotation value filter for writing annotations on a record component.
| |
| valueOf | back to summary |
|---|---|
| public static AnnotationValueFilter. | |
| values | back to summary |
|---|---|
| public static AnnotationValueFilter. | |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationValueFilter | Returns: An annotation value filter to be used when writing annotations onto the given type.The instrumented type onto which the annotations are written. instrumentedType)Creates an annotation value filter for writing annotations on an instrumented type. |
| public AnnotationValueFilter | Returns: An annotation value filter to be used when writing annotations onto the given field.The field onto which the annotations are written. fieldDescription)Creates an annotation value filter for writing annotations on a field. |
| public AnnotationValueFilter | Returns: An annotation value filter to be used when writing annotations onto the given method.The method onto which the annotations are written. methodDescription)Creates an annotation value filter for writing annotations on a method. |
| public AnnotationValueFilter | Returns: An annotation value filter to be used when writing annotations onto the given record component.The record component onto which the annotations are written. recordComponentDescription)Creates an annotation value filter for writing annotations on a record component. |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(TypeDescription instrumentedType) Creates an annotation value filter for writing annotations on an instrumented type.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(FieldDescription fieldDescription) Creates an annotation value filter for writing annotations on a field.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(MethodDescription methodDescription) Creates an annotation value filter for writing annotations on a method.
| |
| on | back to summary |
|---|---|
| public AnnotationValueFilter on(RecordComponentDescription recordComponentDescription) Creates an annotation value filter for writing annotations on a record component.
| |