public final class DynamicAccessor<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Accessor<T> |
ofInstanceConstant(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofInstanceConstant(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofInstanceField(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofInstanceField(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofInstanceMethod(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofInstanceMethod(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |
public static <T> Accessor<T> ofInstanceConstant(java.lang.Object instance, java.lang.Class<T> type, java.lang.String name) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofInstanceConstant(java.lang.Object instance, com.google.common.reflect.TypeToken<T> type, java.lang.String name) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofInstanceField(java.lang.Object instance, java.lang.Class<T> type, java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofInstanceField(java.lang.Object instance, com.google.common.reflect.TypeToken<T> type, java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofInstanceMethod(java.lang.Object instance, java.lang.Class<T> type, java.lang.String name) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public static <T> Accessor<T> ofInstanceMethod(java.lang.Object instance, com.google.common.reflect.TypeToken<T> type, java.lang.String name, java.lang.Object... arguments) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException