Class MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory
All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory
Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForField.Write

@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory extends Object implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory for creating a step to write to a field.
  • Field Details

    • fieldDescription

      private final FieldDescription fieldDescription
      A description of the field to write to.
    • index

      private final int index
      The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.
  • Constructor Details

    • Factory

      public Factory(Field field, int index)
      Creates a factory for writing to a field.
      Parameters:
      field - The field to write to.
      index - The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.
    • Factory

      public Factory(FieldDescription fieldDescription, int index)
      Creates a factory for writing to a field.
      Parameters:
      fieldDescription - A description of the field to write to.
      index - The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.
  • Method Details