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

    • Field Detail

      • 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 Detail

      • Factory

        public Factory​(java.lang.reflect.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.