public static class FieldAttributeAppender.Explicit extends Object implements FieldAttributeAppender, FieldAttributeAppender.Factory
RetentionPolicy annotation.FieldAttributeAppender.Compound, FieldAttributeAppender.Explicit, FieldAttributeAppender.Factory, FieldAttributeAppender.ForInstrumentedField, FieldAttributeAppender.NoOpFieldAttributeAppender.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(FieldVisitor fieldVisitor,
FieldDescription fieldDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
|
boolean |
equals(Object other) |
int |
hashCode() |
FieldAttributeAppender |
make(TypeDescription typeDescription)
Returns a field attribute appender that is applicable for a given type description.
|
String |
toString() |
public Explicit(List<? extends AnnotationDescription> annotations)
annotations - The annotations to be appended to the field.public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)
FieldAttributeAppenderapply in interface FieldAttributeAppenderfieldVisitor - 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)
FieldAttributeAppender.Factorymake in interface FieldAttributeAppender.FactorytypeDescription - The type for which a field attribute appender is to be applied for.Copyright © 2014–2016. All rights reserved.