public static class FieldAttributeAppender.ForAnnotation extends Object implements FieldAttributeAppender, FieldAttributeAppender.Factory
RetentionPolicy annotation.FieldAttributeAppender.Compound, FieldAttributeAppender.Factory, FieldAttributeAppender.ForAnnotation, FieldAttributeAppender.ForField, FieldAttributeAppender.NoOpFieldAttributeAppender.Factory.Compound| Constructor and Description |
|---|
ForAnnotation(List<? extends AnnotationDescription> annotations,
AnnotationAppender.ValueFilter valueFilter)
Creates a new annotation attribute appender for explicit annotation values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(FieldVisitor fieldVisitor,
FieldDescription fieldDescription)
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 ForAnnotation(List<? extends AnnotationDescription> annotations, AnnotationAppender.ValueFilter valueFilter)
annotations - The annotations to be appended to the field.valueFilter - The value filter to apply for discovering which values of an annotation should be written.public void apply(FieldVisitor fieldVisitor, FieldDescription fieldDescription)
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.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–2015. All rights reserved.