M - The message type.public class MessageNamedArgumentFinder<M extends net.morimekta.providence.PMessage<M>> extends Object implements org.skife.jdbi.v2.tweak.NamedArgumentFinder
NamedArgumentFinder implementation that uses a message
and finds values based on the thrift declared field names. This
supports chained calls to any depth as long as each level is a
single message field.public MessageNamedArgumentFinder(@Nullable String prefix, @Nonnull net.morimekta.providence.PMessageOrBuilder<M> message, @Nonnull Map<net.morimekta.providence.descriptor.PField<M>,Integer> fieldTypes)
prefix - Optional prefix name. E.g. "x" will make for lookup
tags like ":x.my_field".message - The message to look up fields in.fieldTypes - Overriding of default field types. This can contain
fields for any of the contained message types, and
will be mapped whenever the field is selected.Copyright © 2015–2020 morimekta.net. All rights reserved.