Package com.aliucord.utils
Class ReflectDelegatesKt
-
- All Implemented Interfaces:
public final class ReflectDelegatesKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> LazyField<Object>
lazyField(String fieldName)
A lazy field delegate designed to improve the performance in field reflection. final static <T extends Any> LazyMethod<Object>
lazyMethod(String methodName)
A lazy method delegate designed to improve the performance in method reflection. final static <T extends Any> FieldAccessor<T>
accessField(String fieldName)
A delegate that provides efficient accessing of a field via reflection. final static <T extends Any> GetterAccessor<T>
accessGetter(String methodName)
A delegate that provides efficient accessing of a no-args getter via reflection. -
-
Method Detail
-
lazyField
final static <T extends Any> LazyField<Object> lazyField(String fieldName)
A lazy field delegate designed to improve the performance in field reflection.
- Parameters:
fieldName
- The name of the field.
-
lazyMethod
final static <T extends Any> LazyMethod<Object> lazyMethod(String methodName)
A lazy method delegate designed to improve the performance in method reflection.
- Parameters:
methodName
- The name of the method.
-
accessField
final static <T extends Any> FieldAccessor<T> accessField(String fieldName)
A delegate that provides efficient accessing of a field via reflection.
- Parameters:
fieldName
- The name of the field.
-
accessGetter
final static <T extends Any> GetterAccessor<T> accessGetter(String methodName)
A delegate that provides efficient accessing of a no-args getter via reflection.
- Parameters:
methodName
- The name of the getter.
-
-
-
-