Package graphql.analysis.values
Interface ValueVisitor
A visitor callback used by
ValueTraverser-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the elements that leads to a value and type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectThis 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 Summary
Modifier and TypeMethodDescriptiondefault @Nullable ObjectvisitAppliedDirectiveArgumentValue(@Nullable Object coercedValue, GraphQLAppliedDirectiveArgument graphQLAppliedDirectiveArgument, ValueVisitor.InputElements inputElements) This is called when aGraphQLAppliedDirectiveArgumentis encountereddefault @Nullable ObjectvisitArgumentValue(@Nullable Object coercedValue, GraphQLArgument graphQLArgument, ValueVisitor.InputElements inputElements) This is called when aGraphQLArgumentis encountereddefault @Nullable ObjectvisitEnumValue(@Nullable Object coercedValue, GraphQLEnumType inputType, ValueVisitor.InputElements inputElements) This is called when an enum value is encountereddefault @Nullable ObjectvisitInputObjectFieldValue(@Nullable Object coercedValue, GraphQLInputObjectType inputObjectType, GraphQLInputObjectField inputObjectField, ValueVisitor.InputElements inputElements) This is called when an input object field value is encounteredvisitInputObjectValue(@Nullable Map<String, Object> coercedValue, GraphQLInputObjectType inputObjectType, ValueVisitor.InputElements inputElements) This is called when an input object value is encountered.visitListValue(@Nullable List<Object> coercedValue, GraphQLList listInputType, ValueVisitor.InputElements inputElements) This is called when an input list value is encountered.default @Nullable ObjectvisitScalarValue(@Nullable Object coercedValue, GraphQLScalarType inputType, ValueVisitor.InputElements inputElements) This is called when a scalar value is encountered
-
Field Details
-
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 Details
-
visitScalarValue
default @Nullable Object visitScalarValue(@Nullable Object coercedValue, GraphQLScalarType inputType, ValueVisitor.InputElements inputElements) This is called when a scalar value is encountered- Parameters:
coercedValue- the value that is in coerced forminputType- the type of scalarinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitEnumValue
default @Nullable Object visitEnumValue(@Nullable Object coercedValue, GraphQLEnumType inputType, ValueVisitor.InputElements inputElements) This is called when an enum value is encountered- Parameters:
coercedValue- the value that is in coerced forminputType- the type of enuminputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitInputObjectFieldValue
default @Nullable Object visitInputObjectFieldValue(@Nullable 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 forminputObjectType- the input object type containing the input fieldinputObjectField- the input object fieldinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitInputObjectValue
default @Nullable Map<String,Object> visitInputObjectValue(@Nullable Map<String, 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 forminputObjectType- the input object typeinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitListValue
default @Nullable List<Object> visitListValue(@Nullable List<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 formlistInputType- the input list typeinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitArgumentValue
default @Nullable Object visitArgumentValue(@Nullable Object coercedValue, GraphQLArgument graphQLArgument, ValueVisitor.InputElements inputElements) This is called when aGraphQLArgumentis encountered- Parameters:
coercedValue- the value that is in coerced formgraphQLArgument- theGraphQLArgumentin playinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-
visitAppliedDirectiveArgumentValue
default @Nullable Object visitAppliedDirectiveArgumentValue(@Nullable Object coercedValue, GraphQLAppliedDirectiveArgument graphQLAppliedDirectiveArgument, ValueVisitor.InputElements inputElements) This is called when aGraphQLAppliedDirectiveArgumentis encountered- Parameters:
coercedValue- the value that is in coerced formgraphQLAppliedDirectiveArgument- theGraphQLAppliedDirectiveArgumentin playinputElements- the elements that lead to this value and type- Returns:
- the same value or a new value
-