Package org.geysermc.configutils.util
Class ReflectionUtils
- java.lang.Object
-
- org.geysermc.configutils.util.ReflectionUtils
-
public class ReflectionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.annotation.Annotation>
TfindAnnotation(java.lang.Class<T> toFind, java.lang.reflect.AnnotatedType inType)static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation>findInheritedAnnotations(java.lang.reflect.AnnotatedElement element, java.util.function.Function<java.lang.Class<?>,java.lang.reflect.AnnotatedElement> elementResolver)static java.lang.annotation.Annotation[]findInheritedAnnotations(java.lang.reflect.Method method)static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation>findInheritedAnnotationsMap(java.lang.Class<?> clazz)static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation>findInheritedAnnotationsMap(java.lang.reflect.Method method)static java.lang.invoke.MethodHandlehandleFor(java.lang.reflect.Method method, java.lang.Object bindTo)static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>>inherited(java.lang.reflect.AnnotatedElement type)
-
-
-
Method Detail
-
handleFor
public static java.lang.invoke.MethodHandle handleFor(java.lang.reflect.Method method, java.lang.Object bindTo)
-
inherited
public static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> inherited(java.lang.reflect.AnnotatedElement type)
-
findAnnotation
public static <T extends java.lang.annotation.Annotation> T findAnnotation(java.lang.Class<T> toFind, java.lang.reflect.AnnotatedType inType)
-
findInheritedAnnotationsMap
public static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> findInheritedAnnotationsMap(java.lang.Class<?> clazz)
-
findInheritedAnnotations
public static java.lang.annotation.Annotation[] findInheritedAnnotations(java.lang.reflect.Method method)
-
findInheritedAnnotationsMap
public static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> findInheritedAnnotationsMap(java.lang.reflect.Method method)
-
findInheritedAnnotations
public static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> findInheritedAnnotations(java.lang.reflect.AnnotatedElement element, java.util.function.Function<java.lang.Class<?>,java.lang.reflect.AnnotatedElement> elementResolver)
-
-