public static class MemberSubstitution.Substitution.Chain.Factory extends java.lang.Object implements MemberSubstitution.Substitution.Factory
Modifier and Type | Field and Description |
---|---|
private Assigner |
assigner
The assigner to use.
|
private java.util.List<MemberSubstitution.Substitution.Chain.Step.Factory> |
steps
The substitution steps to apply.
|
private Assigner.Typing |
typing
The typing of the assignment to use.
|
Modifier | Constructor and Description |
---|---|
protected |
Factory(Assigner assigner,
Assigner.Typing typing,
java.util.List<MemberSubstitution.Substitution.Chain.Step.Factory> steps)
Creates a new factory for a substitution chain.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Substitution.Chain.Factory |
executing(java.util.List<? extends MemberSubstitution.Substitution.Chain.Step.Factory> steps)
Appends the supplied steps to the substitution chain.
|
MemberSubstitution.Substitution.Chain.Factory |
executing(MemberSubstitution.Substitution.Chain.Step.Factory... step)
Appends the supplied steps to the substitution chain.
|
MemberSubstitution.Substitution |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
private final Assigner assigner
private final Assigner.Typing typing
private final java.util.List<MemberSubstitution.Substitution.Chain.Step.Factory> steps
protected Factory(Assigner assigner, Assigner.Typing typing, java.util.List<MemberSubstitution.Substitution.Chain.Step.Factory> steps)
assigner
- The assigner to use.typing
- The typing of the assignment to use.steps
- The substitution steps to apply.public MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make
in interface MemberSubstitution.Substitution.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used.public MemberSubstitution.Substitution.Chain.Factory executing(MemberSubstitution.Substitution.Chain.Step.Factory... step)
step
- The steps to append.public MemberSubstitution.Substitution.Chain.Factory executing(java.util.List<? extends MemberSubstitution.Substitution.Chain.Step.Factory> steps)
steps
- The steps to append.