@HashCodeAndEqualsPlugin.Enhance public static class FieldAttributeAppender.Explicit extends Object implements FieldAttributeAppender, FieldAttributeAppender.Factory
RetentionPolicy
annotation.FieldAttributeAppender.Compound, FieldAttributeAppender.Explicit, FieldAttributeAppender.Factory, FieldAttributeAppender.ForInstrumentedField, FieldAttributeAppender.NoOp
FieldAttributeAppender.Factory.Compound
Constructor and Description |
---|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new annotation attribute appender for explicit annotation values.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(org.objectweb.asm.FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
FieldAttributeAppender |
make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
public Explicit(List<? extends AnnotationDescription> annotations)
annotations
- The annotations to be appended to the field.public void apply(org.objectweb.asm.FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)
apply
in interface FieldAttributeAppender
fieldVisitor
- The field visitor to which the attributes that are represented by this attribute appender are written to.fieldDescription
- The description of the field to which the field visitor belongs to.annotationValueFilter
- The annotation value filter to apply when writing annotations.public FieldAttributeAppender make(TypeDescription typeDescription)
make
in interface FieldAttributeAppender.Factory
typeDescription
- The type for which a field attribute appender is to be applied for.Copyright © 2014–2019. All rights reserved.