Interface Assigner

All Known Implementing Classes:
FieldAssigner, MethodAssigner

@InternalApi public interface Assigner
Encapsulates the details of how values are assigned to an object's fields.
Since:
2.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assign(InternalNode node, Object target, Object value)
    Assigns given value to the target object's field.
  • Method Details

    • assign

      void assign(InternalNode node, Object target, Object value)
      Assigns given value to the target object's field. The assignment itself can be performed by:
      • assigning the argument directly to the Field
      • setting the argument via a setter Method
      Parameters:
      node - contains information about the target field.
      target - that has the field to be assigned.
      value - value to assign, can be null; if the target field is a primitive, then null value is simply ignored.