@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForInvocation extends Object implements MemberSubstitution.Substitution.Chain.Step
Modifier and Type | Class and Description |
---|---|
static class |
MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory
A factory to create a step for a method invocation.
|
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading, MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution, 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
Constructor and Description |
---|
ForInvocation(MethodDescription methodDescription,
Map<Integer,Integer> substitutions,
Assigner assigner,
Assigner.Typing typing)
Creates a new step of an invocation.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Substitution.Chain.Step.Resolution |
resolve(TypeDescription targetType,
ByteCodeElement target,
TypeList.Generic parameters,
StackManipulation original,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
public ForInvocation(MethodDescription methodDescription, Map<Integer,Integer> substitutions, Assigner assigner, Assigner.Typing typing)
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.assigner
- The assigner to use.typing
- The typing to use when assigning.public MemberSubstitution.Substitution.Chain.Step.Resolution resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, StackManipulation original, TypeDescription.Generic current, Map<Integer,Integer> offsets, int freeOffset)
resolve
in interface MemberSubstitution.Substitution.Chain.Step
targetType
- The target result type of the substitution.target
- The byte code element that is currently substituted.parameters
- The parameters of the substituted element.original
- The original 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–2023. All rights reserved.