Package net.jqwik.api.lifecycle
Interface PropertyLifecycleContext
- All Superinterfaces:
- LifecycleContext
@API(status=MAINTAINED,
     since="1.4.0")
public interface PropertyLifecycleContext
extends LifecycleContext
The context information of a property or example.
- 
Method SummaryModifier and TypeMethodDescriptionAn object to query, set or change a property method's attributes.Class<?>The container class in which the current property method is running.The extended label contains additional information about the current container class.The method that defines the current property or example.The current instance of the property's container class.The list of the current instance of the property's container class and all its outer objects if it has any.Methods inherited from interface net.jqwik.api.lifecycle.LifecycleContextfindAnnotation, findAnnotationsInContainer, label, newInstance, optionalContainerClass, optionalElement, reporter, resolveParameter, wrapReporter
- 
Method Details- 
targetMethodMethod targetMethod()The method that defines the current property or example.- Returns:
- a Method instance
 
- 
containerClassClass<?> 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
 
- 
testInstanceObject testInstance()The current instance of the property's container class. There is exactly one instance per property method.- Returns:
- an instance of the container class in which the current property method is running
 
- 
testInstancesThe list of the current instance of the property's container class and all its outer objects if it has any. The result of testInstance() is the last in the list.- Returns:
- List of instances starting from outer-most to inner-most class
 
- 
extendedLabelThe extended label contains additional information about the current container class.- Returns:
- a String
 
- 
attributesAn object to query, set or change a property method's attributes.- Returns:
- the attributes holder
 
 
-