Class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution

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

@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution extends Object implements MemberSubstitution.Substitution.Chain.Step
A step that substitutes an argument of a given index with a compatible type.
  • Field Details

    • substitution

      private final StackManipulation substitution
      The stack manipulation that loads the substituted argument.
    • typeDescription

      private final TypeDescription.Generic typeDescription
      The type of the substituted argument.
    • index

      private final int index
      The index of the argument to substitute.
    • assigner

      private final Assigner assigner
      The assigner to use for assigning the argument.
    • typing

      private final Assigner.Typing typing
      The typing to use for the argument assignment.
  • Constructor Details

    • ForArgumentSubstitution

      protected ForArgumentSubstitution(StackManipulation substitution, TypeDescription.Generic typeDescription, int index, Assigner assigner, Assigner.Typing typing)
      Creates an argument substitution step.
      Parameters:
      substitution - The stack manipulation that loads the substituted argument.
      typeDescription - The type of the substituted argument.
      index - The index of the argument to substitute.
      assigner - The assigner to use for assigning the argument.
      typing - The typing to use for the argument assignment.
  • Method Details