Package net.jqwik.api.lifecycle
Interface PropertyAttributes
- 
 @API(status=MAINTAINED, since="1.3.4") public interface PropertyAttributesRepresents a property method's attributes which are set (or not) in attributes of the Property annotation.This object can be used to query, set or change a property's attribute during the AroundPropertyHook lifecycle hook. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<AfterFailureMode>afterFailure()The after failure mode of the property at hand.java.util.Optional<EdgeCasesMode>edgeCases()The edge cases mode of the property at hand.java.util.Optional<GenerationMode>generation()The generation mode of the property at hand.java.util.Optional<java.lang.Integer>maxDiscardRatio()The maximum allowed discard ration in the property at hand.java.util.Optional<java.lang.String>seed()The random seed used when running the property at hand.voidsetAfterFailure(AfterFailureMode afterFailureMode)voidsetEdgeCases(EdgeCasesMode edgeCasesMode)voidsetGeneration(GenerationMode generationMode)voidsetMaxDiscardRatio(java.lang.Integer maxDiscardRatio)voidsetSeed(java.lang.String seed)voidsetShrinking(ShrinkingMode shrinkingMode)voidsetStereotype(java.lang.String stereotype)voidsetTries(java.lang.Integer tries)voidsetWhenFixedSeed(FixedSeedMode fixedSeedMode)java.util.Optional<ShrinkingMode>shrinking()The shrinking mode of the property at hand.java.util.Optional<java.lang.String>stereotype()The stereotype of the property at hand.java.util.Optional<java.lang.Integer>tries()The number of tries to be run in the property at hand.java.util.Optional<FixedSeedMode>whenFixedSeed()The fixed seed mode of the property at hand.
 
- 
- 
- 
Method Detail- 
triesjava.util.Optional<java.lang.Integer> tries() The number of tries to be run in the property at hand. Only present when set explicitly through Property.tries() or setTries(Integer).jqwik may override an explicit tries value if exhaustive or data-driven generation is chosen. - Returns:
- optional number of tries
 
 - 
maxDiscardRatiojava.util.Optional<java.lang.Integer> maxDiscardRatio() The maximum allowed discard ration in the property at hand. Only present when set explicitly through Property.maxDiscardRatio() or setMaxDiscardRatio(Integer).- Returns:
- optional maximum discard ratio
 
 - 
shrinkingjava.util.Optional<ShrinkingMode> shrinking() The shrinking mode of the property at hand. Only present when set explicitly through Property.shrinking() or setShrinking(ShrinkingMode).- Returns:
- optional shrinking mode
 
 - 
generationjava.util.Optional<GenerationMode> generation() The generation mode of the property at hand. Only present when set explicitly through Property.generation() or setGeneration(GenerationMode).- Returns:
- optional generation mode
 
 - 
afterFailurejava.util.Optional<AfterFailureMode> afterFailure() The after failure mode of the property at hand. Only present when set explicitly through Property.afterFailure() or setAfterFailure(AfterFailureMode).- Returns:
- optional after failure mode
 
 - 
edgeCasesjava.util.Optional<EdgeCasesMode> edgeCases() The edge cases mode of the property at hand. Only present when set explicitly through Property.edgeCases() or setEdgeCases(EdgeCasesMode).- Returns:
- optional edge cases mode
 
 - 
stereotypejava.util.Optional<java.lang.String> stereotype() The stereotype of the property at hand. Only present when set explicitly through Property.stereotype() or setStereotype(String).- Returns:
- optional stereotype
 
 - 
seedjava.util.Optional<java.lang.String> seed() The random seed used when running the property at hand. Only present when set explicitly through Property.seed() or setSeed(String).- Returns:
- optional random seed
 
 - 
whenFixedSeed@API(status=MAINTAINED, since="1.4.0") java.util.Optional<FixedSeedMode> whenFixedSeed()The fixed seed mode of the property at hand. Only present when set explicitly through Property.whenFixedSeed() ()} or setWhenFixedSeed(FixedSeedMode).- Returns:
- optional fixed seed mode
 
 - 
setTriesvoid setTries(java.lang.Integer tries) 
 - 
setMaxDiscardRatiovoid setMaxDiscardRatio(java.lang.Integer maxDiscardRatio) 
 - 
setShrinkingvoid setShrinking(ShrinkingMode shrinkingMode) 
 - 
setGenerationvoid setGeneration(GenerationMode generationMode) 
 - 
setAfterFailurevoid setAfterFailure(AfterFailureMode afterFailureMode) 
 - 
setEdgeCasesvoid setEdgeCases(EdgeCasesMode edgeCasesMode) 
 - 
setStereotypevoid setStereotype(java.lang.String stereotype) 
 - 
setSeedvoid setSeed(java.lang.String seed) 
 - 
setWhenFixedSeedvoid setWhenFixedSeed(FixedSeedMode fixedSeedMode) 
 
- 
 
-