public class FieldSetter extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
FieldSetter(String fieldName,
MethodHandle setter)
Sets a value on the given field.
|
FieldSetter(String fieldName,
MethodHandle setter,
Class<?> target)
Sets a value on the given field.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName() |
Class<?> |
getTarget() |
Class<?> |
getType() |
Object |
invoke(Object object,
Object... args) |
public FieldSetter(String fieldName, MethodHandle setter)
fieldName - the name of the field to setsetter - the setter method handle for the field to accesspublic FieldSetter(String fieldName, MethodHandle setter, Class<?> target)
FieldSetter(String,MethodHandle) this constructor also converts the argumentfieldName - the name of the field to setsetter - the setter method handle for the field to accesstarget - the target signature (source arguments)ConvertCopyright © 2024. All rights reserved.