-
Constructor Summary
Constructors
-
Method Summary
void
Assigns given value to the target object's field.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MethodAssigner
public MethodAssigner(Settings settings)
-
Method Details
-
assign
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.