public class FieldAccessor
extends java.lang.Object
| Constructor and Description |
|---|
FieldAccessor() |
| Modifier and Type | Method and Description |
|---|---|
static <I> I |
makeDynamicGetter(java.lang.Class<I> invokerClass,
java.lang.reflect.Field field)
Create a new dynamic getter instance for the given field.
|
static <I> I |
makeDynamicSetter(java.lang.Class<I> invokerClass,
java.lang.reflect.Field field)
Create a new dynamic setter instance for the given field.
|
static <I> I |
makeGetter(java.lang.Class<I> invokerClass,
java.lang.Object instance,
java.lang.reflect.Field field)
Create a new getter instance for the given field.
|
static <I> I |
makeSetter(java.lang.Class<?> invokerClass,
java.lang.Object instance,
java.lang.reflect.Field field)
Create a new setter instance for the given field.
|
public static <I> I makeSetter(@Nonnull
java.lang.Class<?> invokerClass,
java.lang.Object instance,
@Nonnull
java.lang.reflect.Field field)
I - The invoker interface typeinvokerClass - The invoker interface classinstance - The instance of the class the field is infield - The field to getpublic static <I> I makeDynamicSetter(@Nonnull
java.lang.Class<I> invokerClass,
@Nonnull
java.lang.reflect.Field field)
I - The invoker interface typeinvokerClass - The invoker interface classfield - The field to getpublic static <I> I makeGetter(@Nonnull
java.lang.Class<I> invokerClass,
java.lang.Object instance,
@Nonnull
java.lang.reflect.Field field)
I - The invoker interface typeinvokerClass - The invoker interface classinstance - The instance of the class the field is infield - The field to getpublic static <I> I makeDynamicGetter(@Nonnull
java.lang.Class<I> invokerClass,
@Nonnull
java.lang.reflect.Field field)
I - The invoker interface typeinvokerClass - The invoker interface classfield - The field to get