Uses of Interface
org.instancio.TargetSelector
Packages that use TargetSelector
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio.Contains exception classes thrown by Instancio.
Contains internal classes implementing the core functionality of Instancio.
Contains context-related implementation classes.
Provides selector API implementation.
-
Uses of TargetSelector in org.instancio
Subinterfaces of TargetSelector in org.instancioModifier and TypeInterfaceDescriptioninterfaceA builder for constructing predicate-based field selectors.interfaceGetMethodSelector<T,R> A selector that matches a field using a getter method reference.interfaceA marker for selectors that can be grouped usingSelect.all(GroupableSelector...).interfaceA selector for matching targets using predicates.interfaceinterfaceA marker for selectors that contain other selectors.interfaceA builder for constructing predicate-based type selectors.Methods in org.instancio that return TargetSelectorModifier and TypeMethodDescriptionstatic TargetSelectorSelect all fields matching the specified predicate.static TargetSelectorSelect.root()Selects the root object.static TargetSelectorSelect all types matching the specified predicate.Methods in org.instancio with parameters of type TargetSelectorModifier and TypeMethodDescription<V> InstancioApi<T>InstancioApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<V> InstancioApi<T>InstancioApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.InstancioApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.<V> InstancioApi<T>InstancioApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after an object has been fully populated.<V> InstancioApi<T>InstancioApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.InstancioApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.<V> InstancioApi<T>InstancioApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.<V> InstancioApi<T>InstancioApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.InstancioApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable. -
Uses of TargetSelector in org.instancio.exception
Methods in org.instancio.exception that return types with arguments of type TargetSelectorModifier and TypeMethodDescriptionSet<? super TargetSelector>UnusedSelectorException.getCallbacks()Set<? super TargetSelector>UnusedSelectorException.getGenerators()Set<? super TargetSelector>UnusedSelectorException.getIgnored()Set<? super TargetSelector>UnusedSelectorException.getNullable()Set<? super TargetSelector>UnusedSelectorException.getSubtypes()Constructor parameters in org.instancio.exception with type arguments of type TargetSelectorModifierConstructorDescriptionUnusedSelectorException(String message, Set<? super TargetSelector> ignored, Set<? super TargetSelector> nullable, Set<? super TargetSelector> generators, Set<? super TargetSelector> callbacks, Set<? super TargetSelector> subtypes) -
Uses of TargetSelector in org.instancio.internal
Methods in org.instancio.internal with parameters of type TargetSelectorModifier and TypeMethodDescription<V> InstancioApi<T>ApiImpl.generate(TargetSelector selector, GeneratorSpec<V> spec) <V> InstancioApi<T>ApiImpl.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) ApiImpl.ignore(TargetSelector selector) <V> InstancioApi<T>ApiImpl.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) <V> InstancioApi<T>ApiImpl.set(TargetSelector selector, V value) ApiImpl.subtype(TargetSelector selector, Class<?> subtype) <V> InstancioApi<T>ApiImpl.supply(TargetSelector selector, Supplier<V> supplier) <V> InstancioApi<T>ApiImpl.supply(TargetSelector selector, Generator<V> generator) ApiImpl.withNullable(TargetSelector selector) -
Uses of TargetSelector in org.instancio.internal.context
Methods in org.instancio.internal.context with parameters of type TargetSelectorModifier and TypeMethodDescriptionModelContext.Builder.withGenerator(TargetSelector selector, Generator<?> generator) <V> ModelContext.Builder<T>ModelContext.Builder.withGeneratorSpec(TargetSelector selector, GeneratorSpecProvider<V> spec) ModelContext.Builder.withIgnored(TargetSelector selector) ModelContext.Builder.withNullable(TargetSelector selector) ModelContext.Builder.withOnCompleteCallback(TargetSelector selector, OnCompleteCallback<?> callback) ModelContext.Builder.withSubtype(TargetSelector selector, Class<?> subtype) ModelContext.Builder.withSupplier(TargetSelector selector, Supplier<?> supplier) Constructor parameters in org.instancio.internal.context with type arguments of type TargetSelectorModifierConstructorDescriptionBooleanSelectorMap(Set<TargetSelector> targetSelectors) SubtypeSelectorMap(Map<TargetSelector, Class<?>> subtypeSelectors) -
Uses of TargetSelector in org.instancio.internal.selectors
Classes in org.instancio.internal.selectors that implement TargetSelectorModifier and TypeClassDescriptionclassfinal classSelector for use in generated metamodel classes only.final classfinal classfinal classfinal classclassclassMethods in org.instancio.internal.selectors that return TargetSelectorMethods in org.instancio.internal.selectors that return types with arguments of type TargetSelector