public class TypeFieldProvider extends Object implements GQLFieldProvider<net.morimekta.providence.graphql.introspection.Type>
| Constructor and Description |
|---|
TypeFieldProvider(GQLDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
net.morimekta.providence.descriptor.PMessageDescriptor<net.morimekta.providence.graphql.introspection.Type> |
getDescriptor()
Get the type descriptor this mutator is for.
|
Collection<net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.Type>> |
getFields()
Get the set of fields that can be mutated with this mutator.
|
List<net.morimekta.providence.graphql.introspection.Type> |
provide(net.morimekta.providence.graphql.introspection.Type message,
net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.Type> field,
GQLField selection)
Mutate the message according to the field selection.
|
public TypeFieldProvider(@Nonnull GQLDefinition definition)
public net.morimekta.providence.descriptor.PMessageDescriptor<net.morimekta.providence.graphql.introspection.Type> getDescriptor()
GQLFieldProvidergetDescriptor in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.Type>@Nonnull public Collection<net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.Type>> getFields()
GQLFieldProvidergetFields in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.Type>public List<net.morimekta.providence.graphql.introspection.Type> provide(@Nonnull net.morimekta.providence.graphql.introspection.Type message, @Nonnull net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.Type> field, @Nonnull GQLField selection)
GQLFieldProviderprovide in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.Type>message - The base message builder to be mutated.field - The source field requested.selection - The field selection to be filled or changed.Copyright © 2015–2020 morimekta.net. All rights reserved.