Package | Description |
---|---|
sk.stuba.fiit.perconik.utilities.reflect.accessor |
Utilities extending Java reflection capabilities related to dynamic access.
|
Modifier and Type | Method and Description |
---|---|
static <T> Accessor<T> |
StaticAccessor.ofClassConstant(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
StaticAccessor.ofClassConstant(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
StaticAccessor.ofClassConstructor(java.lang.Class<T> type,
java.lang.Object... arguments) |
static <T> Accessor<T> |
StaticAccessor.ofClassConstructor(com.google.common.reflect.TypeToken<T> type,
java.lang.Object... arguments) |
static <T> Accessor<T> |
StaticAccessor.ofClassField(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
StaticAccessor.ofClassField(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
StaticAccessor.ofClassMethod(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Accessor<T> |
StaticAccessor.ofClassMethod(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Accessor<T> |
StaticAccessor.ofEnumConstant(java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
StaticAccessor.ofEnumConstant(com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceConstant(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceConstant(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceField(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceField(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceMethod(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Accessor<T> |
DynamicAccessor.ofInstanceMethod(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |
Modifier and Type | Method and Description |
---|---|
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassConstant(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassConstant(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassConstructor(java.lang.Class<T> type,
java.lang.Object... arguments) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassConstructor(com.google.common.reflect.TypeToken<T> type,
java.lang.Object... arguments) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassField(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassField(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassMethod(java.lang.Class<?> implementation,
java.lang.Class<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofClassMethod(java.lang.Class<?> implementation,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofEnumConstant(java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofEnumConstant(com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceConstant(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceConstant(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceField(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceField(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceMethod(java.lang.Object instance,
java.lang.Class<T> type,
java.lang.String name) |
static <T> Exceptional<Accessor<T>> |
Accessors.ofInstanceMethod(java.lang.Object instance,
com.google.common.reflect.TypeToken<T> type,
java.lang.String name,
java.lang.Object... arguments) |