public class FieldGetter extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
FieldGetter(String fieldName,
MethodHandle getter)
Gets a value on the given field.
|
FieldGetter(String fieldName,
MethodHandle getter,
Class<?> target)
Gets a value on the given field.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName() |
Class<?> |
getResultType() |
Class<?> |
getTarget() |
Object |
invoke(Object object,
Object... args) |
public FieldGetter(String fieldName, MethodHandle getter)
fieldName - the name of the field to setgetter - the getter method handle for the field to accesspublic FieldGetter(String fieldName, MethodHandle getter, Class<?> target)
FieldGetter(String,MethodHandle) this
constructor also converts the resultfieldName - the name of the field to setgetter - the getter method handle for the field to accesstarget - the target signature (target result)ConvertCopyright © 2024. All rights reserved.