Class InputValueFieldProvider

  • All Implemented Interfaces:
    GQLFieldProvider<net.morimekta.providence.graphql.introspection.InputValue>

    public class InputValueFieldProvider
    extends java.lang.Object
    implements GQLFieldProvider<net.morimekta.providence.graphql.introspection.InputValue>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      net.morimekta.providence.descriptor.PMessageDescriptor<net.morimekta.providence.graphql.introspection.InputValue> getDescriptor()
      Get the type descriptor this mutator is for.
      java.util.Collection<net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.InputValue>> getFields()
      Get the set of fields that can be mutated with this mutator.
      net.morimekta.providence.graphql.introspection.Type provide​(net.morimekta.providence.graphql.introspection.InputValue message, net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.InputValue> field, GQLField selection)
      Mutate the message according to the field selection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputValueFieldProvider

        public InputValueFieldProvider​(@Nonnull
                                       GQLDefinition definition)
    • Method Detail

      • getDescriptor

        public net.morimekta.providence.descriptor.PMessageDescriptor<net.morimekta.providence.graphql.introspection.InputValue> getDescriptor()
        Description copied from interface: GQLFieldProvider
        Get the type descriptor this mutator is for. This may not be an interface type.
        Specified by:
        getDescriptor in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.InputValue>
        Returns:
        The message type being mutated.
      • getFields

        public java.util.Collection<net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.InputValue>> getFields()
        Description copied from interface: GQLFieldProvider
        Get the set of fields that can be mutated with this mutator.
        Specified by:
        getFields in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.InputValue>
        Returns:
        Collection of mutating fields.
      • provide

        public net.morimekta.providence.graphql.introspection.Type provide​(net.morimekta.providence.graphql.introspection.InputValue message,
                                                                           net.morimekta.providence.descriptor.PField<net.morimekta.providence.graphql.introspection.InputValue> field,
                                                                           GQLField selection)
        Description copied from interface: GQLFieldProvider
        Mutate the message according to the field selection. The field selection will represent a single field in the base message, and will be called for each requested field.
        Specified by:
        provide in interface GQLFieldProvider<net.morimekta.providence.graphql.introspection.InputValue>
        Parameters:
        message - The base message builder to be mutated.
        field - The source field requested.
        selection - The field selection to be filled or changed.
        Returns:
        The mutated value for the field.