Package iterator

Class Reflection


  • public final class Reflection
    extends Object
    • Method Detail

      • findAnnotationMemberDefault

        public static <A extends Annotation,​T> T findAnnotationMemberDefault​(Class<A> annotationClass,
                                                                                   String memberName)
      • findField

        public static Field findField​(Class<?> clazz,
                                      String fieldName)
      • findFieldAnnotation

        public static <A extends Annotation> A findFieldAnnotation​(Class<?> clazz,
                                                                   String fieldName,
                                                                   Class<A> annotationClass)
      • findTypeAnnotation

        public static <A extends Annotation> A findTypeAnnotation​(Class<?> clazz,
                                                                  Class<A> annotationClass)
      • getAnnotationMemberDefault

        public static <A extends Annotation,​T> T getAnnotationMemberDefault​(Class<A> annotationClass,
                                                                                  String memberName)
      • getAnnotationMemberType

        public static <A extends AnnotationClass<?> getAnnotationMemberType​(Class<A> annotationClass,
                                                                              String memberName)
      • getAnnotationMemberValue

        public static <A extends Annotation,​T> T getAnnotationMemberValue​(A annotation,
                                                                                String memberName)
      • getField

        public static Field getField​(Class<?> clazz,
                                     String fieldName)
      • getFieldAnnotation

        public static <A extends Annotation> A getFieldAnnotation​(Class<?> clazz,
                                                                  String fieldName,
                                                                  Class<A> annotationClass)
      • getFieldValue

        public static <O,​T> T getFieldValue​(O instance,
                                                  String fieldName)
      • newInstance

        public static <T> T newInstance​(Class<T> clazz,
                                        Object... args)
      • setFieldValue

        public static <T> void setFieldValue​(T instance,
                                             String fieldName,
                                             Object value)