public static class MemberAttributeExtension.ForField extends MemberAttributeExtension<FieldAttributeAppender.Factory> implements AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
MemberAttributeExtension.ForField, MemberAttributeExtension.ForMethodannotationValueFilterFactory, attributeAppenderFactory| Modifier | Constructor and Description | 
|---|---|
|   | ForField()Creates a field attribute extension that appends default values of annotations. | 
|   | ForField(AnnotationValueFilter.Factory annotationValueFilterFactory)Creates a field attribute extension. | 
| protected  | ForField(AnnotationValueFilter.Factory annotationValueFilterFactory,
        FieldAttributeAppender.Factory attributeAppenderFactory)Creates a field attribute extension. | 
| Modifier and Type | Method and Description | 
|---|---|
| MemberAttributeExtension.ForField | annotate(Annotation... annotation)Appends the supplied annotations. | 
| MemberAttributeExtension.ForField | annotate(AnnotationDescription... annotation)Appends the supplied annotations. | 
| MemberAttributeExtension.ForField | annotate(Collection<? extends AnnotationDescription> annotations)Appends the supplied annotations. | 
| MemberAttributeExtension.ForField | annotate(List<? extends Annotation> annotations)Appends the supplied annotations. | 
| MemberAttributeExtension.ForField | attribute(FieldAttributeAppender.Factory attributeAppenderFactory)Appends the supplied attribute appender factory. | 
| AsmVisitorWrapper | on(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)Applies this attribute extension on any field that matches the supplied matcher. | 
| FieldVisitor | wrap(TypeDescription instrumentedType,
    FieldDescription.InDefinedShape fieldDescription,
    FieldVisitor fieldVisitor)Wraps a field visitor. | 
public ForField()
public ForField(AnnotationValueFilter.Factory annotationValueFilterFactory)
annotationValueFilterFactory - The annotation value filter factory to apply.protected ForField(AnnotationValueFilter.Factory annotationValueFilterFactory, FieldAttributeAppender.Factory attributeAppenderFactory)
annotationValueFilterFactory - The annotation value filter factory to apply.attributeAppenderFactory - The field attribute appender factory to use.public MemberAttributeExtension.ForField annotate(Annotation... annotation)
annotation - The annotations to append.public MemberAttributeExtension.ForField annotate(List<? extends Annotation> annotations)
annotations - The annotations to append.public MemberAttributeExtension.ForField annotate(AnnotationDescription... annotation)
annotation - The annotations to append.public MemberAttributeExtension.ForField annotate(Collection<? extends AnnotationDescription> annotations)
annotations - The annotations to append.public MemberAttributeExtension.ForField attribute(FieldAttributeAppender.Factory attributeAppenderFactory)
attributeAppenderFactory - The attribute appender factory to append.public FieldVisitor wrap(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, FieldVisitor fieldVisitor)
wrap in interface AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapperinstrumentedType - The instrumented type.fieldDescription - The field that is currently being defined.fieldVisitor - The original field visitor that defines the given field.public AsmVisitorWrapper on(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
matcher - The matcher that decides what fields the represented extension is applied to.Copyright © 2014–2024. All rights reserved.