public static class MethodAttributeAppender.ForMethod extends Object implements MethodAttributeAppender, MethodAttributeAppender.Factory
MethodAttributeAppender.Compound, MethodAttributeAppender.Factory, MethodAttributeAppender.ForAnnotation, MethodAttributeAppender.ForInstrumentedMethod, MethodAttributeAppender.ForMethod, MethodAttributeAppender.NoOpMethodAttributeAppender.Factory.Compound| Constructor and Description | 
|---|
| ForMethod(Constructor<?> constructor,
         AnnotationAppender.ValueFilter valueFilter)Creates an that copies the annotations of a given constructor to its target. | 
| ForMethod(Method method,
         AnnotationAppender.ValueFilter valueFilter)Creates an that copies the annotations of a given method to its target. | 
| ForMethod(MethodDescription methodDescription,
         AnnotationAppender.ValueFilter valueFilter)Creates an that copies the annotations of a given method description to its target. | 
| 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 ForMethod(Constructor<?> constructor, AnnotationAppender.ValueFilter valueFilter)
constructor - The constructor of which the annotations should be copied.valueFilter - The value filter to apply for discovering which values of an annotation should be written.public ForMethod(Method method, AnnotationAppender.ValueFilter valueFilter)
method - The method of which the annotations should be copied.valueFilter - The value filter to apply for discovering which values of an annotation should be written.public ForMethod(MethodDescription methodDescription, AnnotationAppender.ValueFilter valueFilter)
methodDescription - The method description of which the annotations should be copied.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.