@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory extends Object implements MemberSubstitution.Substitution.Chain.Step.Factory
| Constructor and Description |
|---|
Factory(MethodDescription methodDescription)
Creates a factory for a method invocation without parameter substitutions.
|
Factory(MethodDescription methodDescription,
Map<Integer,Integer> substitutions)
Creates a factory for a method invocation.
|
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Substitution.Chain.Step |
make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
public Factory(MethodDescription methodDescription)
methodDescription - The invoked method or constructor.public Factory(MethodDescription methodDescription, Map<Integer,Integer> substitutions)
methodDescription - The invoked method or constructor.substitutions - A mapping of substituted parameter indices. For targets that are non-static methods,
the targeted index is increased by one.public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
make in interface MemberSubstitution.Substitution.Chain.Step.Factoryassigner - The assigner to use.typing - The typing to use.instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.Copyright © 2014–2023. All rights reserved.