Class ReflectionKit


  • public class ReflectionKit
    extends java.lang.Object
    A package level helper in calling reflective methods and turning them into GraphQLAnnotationsException runtime exceptions
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionKit()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T constructNewInstance​(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args)  
      static <T> java.lang.reflect.Constructor<T> constructor​(java.lang.Class<T> type, java.lang.Class<?>... parameterTypes)  
      static <T> T newInstance​(java.lang.Class<T> clazz)  
      static <T> T newInstance​(java.lang.Class<T> clazz, java.lang.Object parameter)  
      • Methods inherited from class java.lang.Object

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

      • ReflectionKit

        public ReflectionKit()
    • Method Detail

      • constructor

        public static <T> java.lang.reflect.Constructor<T> constructor​(java.lang.Class<T> type,
                                                                       java.lang.Class<?>... parameterTypes)
      • newInstance

        public static <T> T newInstance​(java.lang.Class<T> clazz,
                                        java.lang.Object parameter)