ArbitraryIntrospector
public interface ArbitraryIntrospector {
ArbitraryIntrospectorResult introspect(ArbitraryGeneratorContext context);
}
ArbitraryIntrospector determines how to create an instance of a certain class.
ArbitraryGenerator creates an instance of a certain class.
ArbitraryGenerator handles requests by delegating to ArbitraryIntrospector.
ArbitraryIntrospectorResult
value
an Arbitrary instance which could sample with an every different instance
ArbitraryGeneratorContext
arbitraryProperty
public final class ArbitraryProperty {
private final ObjectProperty objectProperty;
@Nullable
private final ContainerProperty containerProperty;
}
ObjectProperty
ContainerProperty
children
arbitraryProperty children
childrenArbitraryContext
ownerContext
parent ArbitraryGeneratorContext
rootContext
whether it is root ArbitraryGeneratorContext