Package net.jqwik.api.lifecycle
Interface TryLifecycleContext
- 
- All Superinterfaces:
- LifecycleContext
 
 @API(status=MAINTAINED, since="1.4.0") public interface TryLifecycleContext extends LifecycleContextThe context information of a single try of a property.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>containerClass()The container class in which the current property method is running.java.lang.reflect.MethodtargetMethod()The method that defines the current property or example.java.lang.ObjecttestInstance()The current instance of the property's container class.- 
Methods inherited from interface net.jqwik.api.lifecycle.LifecycleContextfindAnnotation, findAnnotationsInContainer, label, newInstance, optionalContainerClass, optionalElement, reporter, resolveParameter, wrapReporter
 
- 
 
- 
- 
- 
Method Detail- 
targetMethodjava.lang.reflect.Method targetMethod() The method that defines the current property or example.- Returns:
- a Method instance
 
 - 
containerClassjava.lang.Class<?> containerClass() The container class in which the current property method is running.Most of the time that's also the defining class. It differs when running properties that are defined in a super class or an implemented interface. - Returns:
- a Class instance
 
 - 
testInstancejava.lang.Object testInstance() The current instance of the property's container class. There is exactly one instance per property method.Mind that all tries of a property share the same test instance. - Returns:
- an instance of the container class in which the current property method is running
 
 
- 
 
-