Class 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>
      T
      findAnnotation​(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.MethodHandle handleFor​(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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectionUtils

        public ReflectionUtils()
    • 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)