Class MemberSubstitution.Substitution.Chain.Step.ForInvocation

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForInvocation
All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step
Enclosing interface:
MemberSubstitution.Substitution.Chain.Step

@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForInvocation extends Object implements MemberSubstitution.Substitution.Chain.Step
A step for invoking a method or constructor. If non-static, a method is invoked upon a the current stack argument of the chain. Arguments are loaded from the intercepted byte code element with a possibility of substitution.
  • Field Details

    • methodDescription

      private final MethodDescription methodDescription
      The invoked method or constructor.
    • substitutions

      private final Map<Integer,Integer> substitutions
      A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
    • assigner

      private final Assigner assigner
      The assigner to use.
    • typing

      private final Assigner.Typing typing
      The typing to use when assigning.
  • Constructor Details

    • ForInvocation

      protected ForInvocation(MethodDescription methodDescription, Map<Integer,Integer> substitutions, Assigner assigner, Assigner.Typing typing)
      Creates a new step of an invocation.
      Parameters:
      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.
  • Method Details