public class StaticGetter extends Object implements MethodInvocationHandler
NULL| Constructor and Description |
|---|
StaticGetter(String fieldName,
MethodHandle getter)
Gets a value on the given field.
|
StaticGetter(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 StaticGetter(String fieldName, MethodHandle getter)
fieldName - the name of the field to setgetter - method handle for the field to accesspublic StaticGetter(String fieldName, MethodHandle getter, Class<?> target)
StaticGetter(String,MethodHandle) this constructor also converts the resultfieldName - the name of the field to setgetter - method handle for the field to accesstarget - the target signature (target result)ConvertCopyright © 2024. All rights reserved.