public static class MethodAttributeAppender.ForInstrumentedMethod extends Object implements MethodAttributeAppender, MethodAttributeAppender.Factory
MethodAttributeAppender.Compound, MethodAttributeAppender.Factory, MethodAttributeAppender.ForAnnotation, MethodAttributeAppender.ForInstrumentedMethod, MethodAttributeAppender.ForMethod, MethodAttributeAppender.NoOpMethodAttributeAppender.Factory.Compound| Constructor and Description |
|---|
ForInstrumentedMethod(AnnotationAppender.ValueFilter valueFilter)
Creates a new appender for appending the instrumented method's annotation to the created method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MethodVisitor methodVisitor,
MethodDescription methodDescription)
Applies this attribute appender to a given method visitor.
|
boolean |
equals(Object other) |
int |
hashCode() |
MethodAttributeAppender |
make(TypeDescription typeDescription)
Returns a method attribute appender that is applicable for a given type description.
|
String |
toString() |
public ForInstrumentedMethod(AnnotationAppender.ValueFilter valueFilter)
valueFilter - The value filter to apply for discovering which values of an annotation should be written.public void apply(MethodVisitor methodVisitor, MethodDescription methodDescription)
MethodAttributeAppenderapply in interface MethodAttributeAppendermethodVisitor - The method visitor to which the attributes that are represented by this attribute
appender are written to.methodDescription - The description of the method for which the given method visitor creates an
instrumentation for.public MethodAttributeAppender make(TypeDescription typeDescription)
MethodAttributeAppender.Factorymake in interface MethodAttributeAppender.FactorytypeDescription - The type for which a method attribute appender is to be applied for.Copyright © 2014–2015. All rights reserved.