Class MethodAssigner

java.lang.Object
org.instancio.internal.assigners.MethodAssigner
All Implemented Interfaces:
Assigner

public class MethodAssigner extends Object implements Assigner
  • Constructor Details

    • MethodAssigner

      public MethodAssigner(Settings settings)
  • Method Details

    • assign

      public void assign(Node node, Object target, Object arg)
      Description copied from interface: Assigner
      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
      Specified by:
      assign in interface Assigner
      Parameters:
      node - contains information about the target field.
      target - that has the field to be assigned.
      arg - value to assign, can be null; if the target field is a primitive, then null value is simply ignored.