Class ReflectionKit
- java.lang.Object
-
- graphql.annotations.processor.util.ReflectionKit
-
public class ReflectionKit extends java.lang.ObjectA 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> TconstructNewInstance(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> TnewInstance(java.lang.Class<T> clazz)static <T> TnewInstance(java.lang.Class<T> clazz, java.lang.Object parameter)
-
-
-
Method Detail
-
newInstance
public static <T> T newInstance(java.lang.Class<T> clazz) throws GraphQLAnnotationsException- Throws:
GraphQLAnnotationsException
-
constructNewInstance
public static <T> T constructNewInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args) throws GraphQLAnnotationsException- Throws:
GraphQLAnnotationsException
-
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)
-
-