public class StaticSetter extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
StaticSetter(String fieldName,
MethodHandle setter)
Sets a value on the given field.
|
StaticSetter(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 StaticSetter(String fieldName, MethodHandle setter)
fieldName - the name of the field to setsetter - the setter method handle for the the field to accesspublic StaticSetter(String fieldName, MethodHandle setter, Class<?> target)
StaticSetter(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.