public final class StaticAccessor<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Accessor<T> |
ofClassConstant(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofClassConstant(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofClassConstructor(java.lang.Class<T> type,
java.lang.Object... arguments) |
static <T> Accessor<T> |
ofClassConstructor(com.google.common.reflect.TypeToken<T> type,
java.lang.Object... arguments) |
static <T> Accessor<T> |
ofClassField(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofClassField(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofClassMethod(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Accessor<T> |
ofClassMethod(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Accessor<T> |
ofEnumConstant(java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
ofEnumConstant(com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
public static <T> Accessor<T> ofClassConstant(java.lang.Class<?> implementation, 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> ofClassConstant(java.lang.Class<?> implementation, 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> ofClassField(java.lang.Class<?> implementation, java.lang.Class<T> type, java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofClassField(java.lang.Class<?> implementation, com.google.common.reflect.TypeToken<T> type, java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public static <T> Accessor<T> ofClassConstructor(java.lang.Class<T> type, java.lang.Object... arguments) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public static <T> Accessor<T> ofClassConstructor(com.google.common.reflect.TypeToken<T> type, java.lang.Object... arguments) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public static <T> Accessor<T> ofClassMethod(java.lang.Class<?> implementation, java.lang.Class<T> type, java.lang.String name, java.lang.Object... arguments) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public static <T> Accessor<T> ofClassMethod(java.lang.Class<?> implementation, com.google.common.reflect.TypeToken<T> type, java.lang.String name, java.lang.Object... arguments) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public static <T> Accessor<T> ofEnumConstant(java.lang.Class<T> type, java.lang.String name)
public static <T> Accessor<T> ofEnumConstant(com.google.common.reflect.TypeToken<T> type, java.lang.String name)