Class Reflection<T>


  • public class Reflection<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Reflection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <A extends java.lang.annotation.Annotation>
      A
      classAnnotation​(java.lang.Class<A> a)  
      java.lang.reflect.Field field​(java.lang.String fieldName)  
      <A extends java.lang.annotation.Annotation>
      A
      fieldAnnotation​(java.lang.Class<A> a, java.lang.String fieldName)  
      java.lang.reflect.Method method0​(java.lang.String methodName, java.lang.Class<?>... params)  
      <A extends java.lang.annotation.Annotation>
      A
      methodAnnotation​(java.lang.Class<A> a, java.lang.String methodName, java.lang.Class<?>... params)  
      java.util.List<java.lang.reflect.Method> methodsReturningWithOneParam​(java.lang.String startsWith, java.lang.Class<?> returnClass)  
      <Returns> java.util.List<java.lang.reflect.Method> staticMethodsReturning​(java.lang.Class<Returns> returnClass)  
      • Methods inherited from class java.lang.Object

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

      • Reflection

        public Reflection()
    • Method Detail

      • field

        public java.lang.reflect.Field field​(java.lang.String fieldName)
      • method0

        public java.lang.reflect.Method method0​(java.lang.String methodName,
                                                java.lang.Class<?>... params)
      • classAnnotation

        public <A extends java.lang.annotation.Annotation> A classAnnotation​(java.lang.Class<A> a)
      • methodAnnotation

        public <A extends java.lang.annotation.Annotation> A methodAnnotation​(java.lang.Class<A> a,
                                                                              java.lang.String methodName,
                                                                              java.lang.Class<?>... params)
      • fieldAnnotation

        public <A extends java.lang.annotation.Annotation> A fieldAnnotation​(java.lang.Class<A> a,
                                                                             java.lang.String fieldName)
      • staticMethodsReturning

        public <Returns> java.util.List<java.lang.reflect.Method> staticMethodsReturning​(java.lang.Class<Returns> returnClass)
      • methodsReturningWithOneParam

        public java.util.List<java.lang.reflect.Method> methodsReturningWithOneParam​(java.lang.String startsWith,
                                                                                     java.lang.Class<?> returnClass)