@HashCodeAndEqualsPlugin.Enhance public static class MethodAttributeAppender.Explicit.Target.OnMethodParameter extends java.lang.Object implements MethodAttributeAppender.Explicit.Target
MethodAttributeAppender.Explicit.Target.OnMethod, MethodAttributeAppender.Explicit.Target.OnMethodParameter| Modifier and Type | Field and Description |
|---|---|
private int |
parameterIndex
The index of the parameter to write the annotation to.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OnMethodParameter(int parameterIndex)
Creates a target for a method attribute appender for a method parameter of the given index.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationAppender.Target |
make(org.objectweb.asm.MethodVisitor methodVisitor,
MethodDescription methodDescription)
Materializes the target for a given creation process.
|
private final int parameterIndex
protected OnMethodParameter(int parameterIndex)
parameterIndex - The index of the target parameter.public AnnotationAppender.Target make(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription)
make in interface MethodAttributeAppender.Explicit.TargetmethodVisitor - 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.