Uses of Class
net.morimekta.providence.testing.generator.GeneratorContext
-
Packages that use GeneratorContext Package Description net.morimekta.providence.testing.generator net.morimekta.providence.testing.generator.defaults net.morimekta.providence.testing.generator.extra -
-
Uses of GeneratorContext in net.morimekta.providence.testing.generator
Classes in net.morimekta.providence.testing.generator with type parameters of type GeneratorContext Modifier and Type Interface Description interface
Generator<Context extends GeneratorContext<Context>,T>
Basic generator interface.class
GeneratorContext<Context extends GeneratorContext<Context>>
This is the core generator context, which essentially brings all things to be generated together.interface
MessageFieldGenerator<M extends net.morimekta.providence.PMessage<M>,MB extends net.morimekta.providence.PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Basic generator interface.static class
MessageFieldGenerator.Conditional<M extends net.morimekta.providence.PMessage<M>,MB extends net.morimekta.providence.PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Conditional field value generator.static class
MessageFieldGenerator.Wrapper<M extends net.morimekta.providence.PMessage<M>,MB extends net.morimekta.providence.PMessageOrBuilder<M>,C extends GeneratorContext<C>,T>
Simple class that wraps a standard value generator.class
MessageGenerator<Context extends GeneratorContext<Context>,Message extends net.morimekta.providence.PMessage<Message>,MessageOrBuilder extends net.morimekta.providence.PMessageOrBuilder<Message>>
Message generator for generating a specific message.Subclasses of GeneratorContext in net.morimekta.providence.testing.generator Modifier and Type Class Description static class
GeneratorContext.Simple
GeneratorContext with no extra methods in non-generic form.Methods in net.morimekta.providence.testing.generator that return GeneratorContext Modifier and Type Method Description <M extends net.morimekta.providence.PMessage<M>,MOB extends net.morimekta.providence.PMessageOrBuilder<M>>
GeneratorContext<Context>GeneratorContext. withMessageGenerator(net.morimekta.providence.descriptor.PMessageDescriptor<M> descriptor, java.util.function.Consumer<MessageGenerator<Context,M,MOB>> closure)
Update the generator for the given message type.Constructors in net.morimekta.providence.testing.generator with parameters of type GeneratorContext Constructor Description GeneratorContext(GeneratorContext<Context> parent)
Create a generator instance as copy of another instance. -
Uses of GeneratorContext in net.morimekta.providence.testing.generator.defaults
Classes in net.morimekta.providence.testing.generator.defaults with type parameters of type GeneratorContext Modifier and Type Class Description class
BinaryGenerator<Context extends GeneratorContext<Context>>
Default generator for binary fields.class
BoolGenerator<Context extends GeneratorContext<Context>>
Default generator for bool fields.class
ByteGenerator<Context extends GeneratorContext<Context>>
Default generator for byte (i8) fields.class
DoubleGenerator<Context extends GeneratorContext<Context>>
Default generator for double fields.class
EnumGenerator<Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
Default generator for an enum field.class
IntGenerator<Context extends GeneratorContext<Context>>
Default generator for an int field.class
ListGenerator<Context extends GeneratorContext<Context>>
Default generator for a list field.class
LongGenerator<Context extends GeneratorContext<Context>>
Default generator for a long field.class
MapGenerator<Context extends GeneratorContext<Context>>
Default generator for map fields.class
SetGenerator<Context extends GeneratorContext<Context>>
Default generator for set fields.class
ShortGenerator<Context extends GeneratorContext<Context>>
Default generator for short fields.class
StringGenerator<Context extends GeneratorContext<Context>>
Default generator for string fields.class
VoidGenerator<Context extends GeneratorContext<Context>>
Default generator for bool fields. -
Uses of GeneratorContext in net.morimekta.providence.testing.generator.extra
Classes in net.morimekta.providence.testing.generator.extra with type parameters of type GeneratorContext Modifier and Type Class Description class
ByteRangeGenerator<Context extends GeneratorContext<Context>>
Default generator for selecting one of a set of values of the same type..class
DoubleRangeGenerator<Context extends GeneratorContext<Context>>
Default generator for selecting one of a set of values of the same type..class
EnumNameGenerator<Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
GeneratorContext helper class for enum value (asString) of the selected enum.class
EnumValueGenerator<Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
GeneratorContext helper class for enum value (asInteger) of the selected enum.class
IntRangeGenerator<Context extends GeneratorContext<Context>>
Default generator for selecting one of a set of values of the same type..class
LongRangeGenerator<Context extends GeneratorContext<Context>>
Default generator for selecting one of a set of values of the same type..class
OneOfGenerator<Context extends GeneratorContext<Context>,T>
Default generator for selecting one of a set of values of the same type..class
ShortRangeGenerator<Context extends GeneratorContext<Context>>
Default generator for selecting one of a set of values of the same type..Methods in net.morimekta.providence.testing.generator.extra with type parameters of type GeneratorContext Modifier and Type Method Description static <Context extends GeneratorContext<Context>>
ByteRangeGenerator<Context>ExtraGenerators. byteRange(byte fromIncluding, byte toExcluding)
static <Context extends GeneratorContext<Context>>
ByteRangeGenerator<Context>ExtraGenerators. byteRange(int fromIncluding, int toExcluding)
static <Context extends GeneratorContext<Context>>
DoubleRangeGenerator<Context>ExtraGenerators. doubleRange(double fromIncluding, double toExcluding)
static <Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
EnumNameGenerator<Context,E>ExtraGenerators. enumName(E... selection)
static <Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
EnumNameGenerator<Context,E>ExtraGenerators. enumName(net.morimekta.providence.descriptor.PEnumDescriptor<E> descriptor)
static <Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
EnumValueGenerator<Context,E>ExtraGenerators. enumValue(E... selection)
static <Context extends GeneratorContext<Context>,E extends net.morimekta.providence.PEnumValue<E>>
EnumValueGenerator<Context,E>ExtraGenerators. enumValue(net.morimekta.providence.descriptor.PEnumDescriptor<E> descriptor)
static <Context extends GeneratorContext<Context>>
IntRangeGenerator<Context>ExtraGenerators. intRange(int fromIncluding, int toExcluding)
static <Context extends GeneratorContext<Context>>
LongRangeGenerator<Context>ExtraGenerators. longRange(long fromIncluding, long toExcluding)
static <Context extends GeneratorContext<Context>,T>
OneOfGenerator<Context,T>ExtraGenerators. oneOf(java.util.Collection<T> selection)
static <Context extends GeneratorContext<Context>,T>
OneOfGenerator<Context,T>ExtraGenerators. oneOf(T... selection)
static <Context extends GeneratorContext<Context>>
ShortRangeGenerator<Context>ExtraGenerators. shortRange(int fromIncluding, int toExcluding)
static <Context extends GeneratorContext<Context>>
ShortRangeGenerator<Context>ExtraGenerators. shortRange(short fromIncluding, short toExcluding)
-