com.pholser.junit.quickcheck.internal
Class Reflection

java.lang.Object
  extended by com.pholser.junit.quickcheck.internal.Reflection

public final class Reflection
extends Object


Method Summary
static Object defaultValueOf(Class<? extends Annotation> annotationType, String attribute)
           
static Method findMethodQuietly(Class<?> target, String methodName, Class<?>... argTypes)
           
static
<T> T
instantiate(Class<T> clazz)
           
static Object invokeQuietly(Method method, Object target, Object... args)
           
static List<Annotation> markedAnnotations(List<Annotation> annotations, Class<? extends Annotation> marker)
           
static Method singleAbstractMethodOf(Class<?> rawClass)
           
static Set<org.javaruntype.type.Type<?>> supertypes(org.javaruntype.type.Type<?> bottom)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instantiate

public static <T> T instantiate(Class<T> clazz)

supertypes

public static Set<org.javaruntype.type.Type<?>> supertypes(org.javaruntype.type.Type<?> bottom)

defaultValueOf

public static Object defaultValueOf(Class<? extends Annotation> annotationType,
                                    String attribute)

markedAnnotations

public static List<Annotation> markedAnnotations(List<Annotation> annotations,
                                                 Class<? extends Annotation> marker)

findMethodQuietly

public static Method findMethodQuietly(Class<?> target,
                                       String methodName,
                                       Class<?>... argTypes)

invokeQuietly

public static Object invokeQuietly(Method method,
                                   Object target,
                                   Object... args)

singleAbstractMethodOf

public static Method singleAbstractMethodOf(Class<?> rawClass)


Copyright © 2013. All Rights Reserved.