Interface ValueVisitor

    • Field Detail

      • ABSENCE_SENTINEL

        static final java.lang.Object ABSENCE_SENTINEL
        This magic sentinel value indicates that a value should be removed from a list or object versus being set to null, that is the difference between a value not being present and a value being null
    • Method Detail

      • visitScalarValue

        @Nullable
        default @Nullable java.lang.Object visitScalarValue​(@Nullable
                                                            @Nullable java.lang.Object coercedValue,
                                                            GraphQLScalarType inputType,
                                                            ValueVisitor.InputElements inputElements)
        This is called when a scalar value is encountered
        Parameters:
        coercedValue - the value that is in coerced form
        inputType - the type of scalar
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value
      • visitEnumValue

        @Nullable
        default @Nullable java.lang.Object visitEnumValue​(@Nullable
                                                          @Nullable java.lang.Object coercedValue,
                                                          GraphQLEnumType inputType,
                                                          ValueVisitor.InputElements inputElements)
        This is called when an enum value is encountered
        Parameters:
        coercedValue - the value that is in coerced form
        inputType - the type of enum
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value
      • visitInputObjectFieldValue

        @Nullable
        default @Nullable java.lang.Object visitInputObjectFieldValue​(@Nullable
                                                                      @Nullable java.lang.Object coercedValue,
                                                                      GraphQLInputObjectType inputObjectType,
                                                                      GraphQLInputObjectField inputObjectField,
                                                                      ValueVisitor.InputElements inputElements)
        This is called when an input object field value is encountered
        Parameters:
        coercedValue - the value that is in coerced form
        inputObjectType - the input object type containing the input field
        inputObjectField - the input object field
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value
      • visitInputObjectValue

        @Nullable
        default @Nullable java.util.Map<java.lang.String,​java.lang.Object> visitInputObjectValue​(@Nullable
                                                                                                       @Nullable java.util.Map<java.lang.String,​java.lang.Object> coercedValue,
                                                                                                       GraphQLInputObjectType inputObjectType,
                                                                                                       ValueVisitor.InputElements inputElements)
        This is called when an input object value is encountered.
        Parameters:
        coercedValue - the value that is in coerced form
        inputObjectType - the input object type
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value
      • visitListValue

        @Nullable
        default @Nullable java.util.List<java.lang.Object> visitListValue​(@Nullable
                                                                          @Nullable java.util.List<java.lang.Object> coercedValue,
                                                                          GraphQLList listInputType,
                                                                          ValueVisitor.InputElements inputElements)
        This is called when an input list value is encountered.
        Parameters:
        coercedValue - the value that is in coerced form
        listInputType - the input list type
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value
      • visitArgumentValue

        @Nullable
        default @Nullable java.lang.Object visitArgumentValue​(@Nullable
                                                              @Nullable java.lang.Object coercedValue,
                                                              GraphQLArgument graphQLArgument,
                                                              ValueVisitor.InputElements inputElements)
        This is called when a GraphQLArgument is encountered
        Parameters:
        coercedValue - the value that is in coerced form
        graphQLArgument - the GraphQLArgument in play
        inputElements - the elements that lead to this value and type
        Returns:
        the same value or a new value