public static class TypeAttributeAppender.ForAnnotation extends Object implements TypeAttributeAppender
RetentionPolicy.TypeAttributeAppender.Compound, TypeAttributeAppender.ForAnnotation, TypeAttributeAppender.ForSuperType, TypeAttributeAppender.ForType, TypeAttributeAppender.NoOp| 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(ClassVisitor classVisitor,
TypeDescription typeDescription)
Applies this type attribute appender.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
public ForAnnotation(List<? extends AnnotationDescription> annotations, AnnotationAppender.ValueFilter valueFilter)
annotations - The annotations to write to the given type.valueFilter - The value filter to apply for discovering which values of an annotation should be written.public void apply(ClassVisitor classVisitor, TypeDescription typeDescription)
TypeAttributeAppenderapply in interface TypeAttributeAppenderclassVisitor - The class visitor to which the annotations of this visitor should be written to.typeDescription - A description of the instrumented type that is target of the ongoing instrumentation.Copyright © 2014–2015. All rights reserved.