Class Reflection
java.lang.Object
com.pholser.junit.quickcheck.internal.Reflection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Annotation>(package private) static <T extends Annotation>
List<T>allAnnotationsByType(AnnotatedElement e, Class<T> type) allDeclaredFieldsOf(Class<?> type) static List<AnnotatedType>annotatedComponentTypes(AnnotatedType annotatedType) static ObjectdefaultValueOf(Class<? extends Annotation> annotationType, String attribute) static <T> Constructor<T>findConstructor(Class<T> type, Class<?>... parameterTypes) (package private) static <T> Constructor<T>findDeclaredConstructor(Class<T> type, Class<?>... parameterTypes) static Fieldstatic MethodfindMethod(Class<?> target, String methodName, Class<?>... argTypes) static <T> Tinstantiate(Class<T> clazz) static <T> Tinstantiate(Constructor<T> ctor, Object... args) static Objectprivate static booleanprivate static booleanisHashCode(Method method) static booleanisMarkerInterface(Class<?> clazz) private static booleanisToString(Method method) (package private) static booleanstatic Class<?>private static List<Annotation>private static booleanoverridesJavaLangObjectMethod(Method method) static RuntimeExceptionstatic voidstatic MethodsingleAbstractMethodOf(Class<?> rawClass) static <T> Constructor<T>singleAccessibleConstructor(Class<T> type) static Set<io.arxila.javaruntype.type.Type<?>>supertypes(io.arxila.javaruntype.type.Type<?> bottom)
-
Field Details
-
PRIMITIVES
-
-
Constructor Details
-
Reflection
private Reflection()
-
-
Method Details
-
maybeWrap
-
findConstructor
-
findDeclaredConstructor
-
singleAccessibleConstructor
-
instantiate
-
instantiate
-
supertypes
public static Set<io.arxila.javaruntype.type.Type<?>> supertypes(io.arxila.javaruntype.type.Type<?> bottom) -
defaultValueOf
-
allAnnotations
-
allAnnotationsByType
-
findMethod
-
invoke
-
findField
-
allDeclaredFieldsOf
-
setField
-
jdk9OrBetter
static boolean jdk9OrBetter() -
singleAbstractMethodOf
-
isMarkerInterface
-
overridesJavaLangObjectMethod
-
isEquals
-
isHashCode
-
isToString
-
reflectionException
-
nonSystemAnnotations
-
annotatedComponentTypes
-