@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.TargetHandler.ForMethodParameter extends Object implements MethodCall.TargetHandler, MethodCall.TargetHandler.Factory
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodCall.TargetHandler.ForMethodParameter.Resolved
A resolved target handler for a method parameter.
|
MethodCall.TargetHandler.Factory, MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodCall, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue, MethodCall.TargetHandler.Simple
InstrumentedType.Prepareable.NoOp
Modifier | Constructor and Description |
---|---|
protected |
ForMethodParameter(int index)
Creates a new target handler for the instrumented method's argument.
|
Modifier and Type | Method and Description |
---|---|
MethodCall.TargetHandler |
make(Implementation.Target implementationTarget)
Creates a target handler for a given implementation target.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
MethodCall.TargetHandler.Resolved |
resolve(MethodDescription instrumentedMethod)
Resolves this target handler.
|
protected ForMethodParameter(int index)
index
- The index of the instrumented method's parameter that is the target of the method invocation.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public MethodCall.TargetHandler make(Implementation.Target implementationTarget)
make
in interface MethodCall.TargetHandler.Factory
implementationTarget
- The implementation target to use.public MethodCall.TargetHandler.Resolved resolve(MethodDescription instrumentedMethod)
resolve
in interface MethodCall.TargetHandler
instrumentedMethod
- The instrumented method.Copyright © 2014–2025. All rights reserved.