@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading extends Object implements MemberSubstitution.Substitution.Chain.Step, MemberSubstitution.Substitution.Chain.Step.Factory
Modifier and Type | Class and Description |
---|---|
protected static class |
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod
A factory that resolves a given argument of the instrumented method.
|
protected static class |
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethodThis
A factory that resolves the
this reference of the instrumented method. |
MemberSubstitution.Substitution.Chain.Step.Factory, MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading, MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution, MemberSubstitution.Substitution.Chain.Step.ForAssignment, MemberSubstitution.Substitution.Chain.Step.ForDelegation, MemberSubstitution.Substitution.Chain.Step.ForField, MemberSubstitution.Substitution.Chain.Step.ForInvocation, MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression, MemberSubstitution.Substitution.Chain.Step.Resolution, MemberSubstitution.Substitution.Chain.Step.Simple
Modifier | Constructor and Description |
---|---|
protected |
ForArgumentLoading(int index)
Creates an argument loading step.
|
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.
|
static MemberSubstitution.Substitution.Chain.Step.Factory |
ofInstrumentedMethod(int index)
Creates a factory that loads the argument for the instrumented method's parameter of the specified index.
|
static MemberSubstitution.Substitution.Chain.Step.Factory |
ofTarget(int index)
Creates a factory that loads the argument for the targeted value's parameter of the specified index.
|
static MemberSubstitution.Substitution.Chain.Step.Factory |
ofThis()
Creates a factory that loads the
this reference of the instrumented method. |
MemberSubstitution.Substitution.Chain.Step.Resolution |
resolve(TypeDescription receiver,
ByteCodeElement.Member original,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
protected ForArgumentLoading(int index)
index
- The index of the argument to load.public static MemberSubstitution.Substitution.Chain.Step.Factory ofTarget(int index)
index
- The index to load.public static MemberSubstitution.Substitution.Chain.Step.Factory ofInstrumentedMethod(int index)
index
- The index to load.public static MemberSubstitution.Substitution.Chain.Step.Factory ofThis()
this
reference of the instrumented method.public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
make
in interface MemberSubstitution.Substitution.Chain.Step.Factory
assigner
- The assigner to use.typing
- The typing to use.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.public MemberSubstitution.Substitution.Chain.Step.Resolution resolve(TypeDescription receiver, ByteCodeElement.Member original, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer,Integer> offsets, int freeOffset)
resolve
in interface MemberSubstitution.Substitution.Chain.Step
receiver
- The target result type of the substitution.original
- The byte code element that is currently substituted.parameters
- The parameters of the substituted element.result
- The resulting type of the substituted element.methodHandle
- A method handle of the stackManipulation invocation that is being substituted.stackManipulation
- The byte code instruction that is being substituted.current
- The current type of the applied substitution that is the top element on the operand stack.offsets
- The arguments of the substituted byte code element mapped to their local variable offsets.freeOffset
- The first free offset in the local variable array.Copyright © 2014–2024. All rights reserved.