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

    • Field Detail

      • 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

      • Write

        protected Write​(FieldDescription fieldDescription,
                        Assigner assigner,
                        Assigner.Typing typing,
                        int index)
        Creates a step for writing to a field.
        Parameters:
        fieldDescription - A description of the field to write to.
        assigner - The assigner to use.
        typing - The typing to use when assigning.
        index - The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.