Package net.jqwik.api.facades
Class ReflectionSupportFacade
- java.lang.Object
-
- net.jqwik.api.facades.ReflectionSupportFacade
-
@API(status=INTERNAL) public abstract class ReflectionSupportFacade extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ReflectionSupportFacade
implementation
-
Constructor Summary
Constructors Constructor Description ReflectionSupportFacade()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <T> T
newInstanceInTestContext(java.lang.Class<T> clazz, java.lang.Object context)
Create instance of a class that can potentially be a non static inner class and its outer instance might becontext
abstract <T> T
newInstanceWithDefaultConstructor(java.lang.Class<T> clazz)
Create instance of a class that can potentially be a non static inner class
-
-
-
Field Detail
-
implementation
public static final ReflectionSupportFacade implementation
-
-
Method Detail
-
newInstanceInTestContext
public abstract <T> T newInstanceInTestContext(java.lang.Class<T> clazz, java.lang.Object context)
Create instance of a class that can potentially be a non static inner class and its outer instance might becontext
- Type Parameters:
T
- The type of the instance to create- Parameters:
clazz
- The class to instantiatecontext
- The potential context instance- Returns:
- the newly created instance
-
newInstanceWithDefaultConstructor
public abstract <T> T newInstanceWithDefaultConstructor(java.lang.Class<T> clazz)
Create instance of a class that can potentially be a non static inner class- Type Parameters:
T
- The type of the instance to create- Parameters:
clazz
- The class to instantiate- Returns:
- the newly created instance
-
-