@PublicSpi public interface ValueVisitor
ValueTraverser
Modifier and Type | Interface and Description |
---|---|
static interface |
ValueVisitor.InputElements
Represents the elements that leads to a value and type
|
Modifier and Type | Field and Description |
---|---|
static 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
|
Modifier and Type | Method and Description |
---|---|
default @Nullable java.lang.Object |
visitEnumValue(@Nullable java.lang.Object coercedValue,
GraphQLEnumType inputType,
ValueVisitor.InputElements inputElements)
This is called when an enum value is encountered
|
default @Nullable java.lang.Object |
visitInputObjectFieldValue(@Nullable java.lang.Object coercedValue,
GraphQLInputObjectType inputObjectType,
GraphQLInputObjectField inputObjectField,
ValueVisitor.InputElements inputElements)
This is called when an input object field value is encountered
|
default @Nullable java.util.Map<java.lang.String,java.lang.Object> |
visitInputObjectValue(@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.
|
default @Nullable java.util.List<java.lang.Object> |
visitListValue(@Nullable java.util.List<java.lang.Object> coercedValue,
GraphQLList listInputType,
ValueVisitor.InputElements inputElements)
This is called when an input list value is encountered.
|
default @Nullable java.lang.Object |
visitScalarValue(@Nullable java.lang.Object coercedValue,
GraphQLScalarType inputType,
ValueVisitor.InputElements inputElements)
This is called when a scalar value is encountered
|
static final java.lang.Object ABSENCE_SENTINEL
@Nullable default @Nullable java.lang.Object visitScalarValue(@Nullable @Nullable java.lang.Object coercedValue, GraphQLScalarType inputType, ValueVisitor.InputElements inputElements)
coercedValue
- the value that is in coerced forminputType
- the type of scalarinputElements
- the elements that lead to this value and type@Nullable default @Nullable java.lang.Object visitEnumValue(@Nullable @Nullable java.lang.Object coercedValue, GraphQLEnumType inputType, ValueVisitor.InputElements inputElements)
coercedValue
- the value that is in coerced forminputType
- the type of enuminputElements
- the elements that lead to this value and type@Nullable default @Nullable java.lang.Object visitInputObjectFieldValue(@Nullable @Nullable java.lang.Object coercedValue, GraphQLInputObjectType inputObjectType, GraphQLInputObjectField inputObjectField, ValueVisitor.InputElements inputElements)
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@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)
coercedValue
- the value that is in coerced forminputObjectType
- the input object typeinputElements
- the elements that lead to this value and type@Nullable default @Nullable java.util.List<java.lang.Object> visitListValue(@Nullable @Nullable java.util.List<java.lang.Object> coercedValue, GraphQLList listInputType, ValueVisitor.InputElements inputElements)
coercedValue
- the value that is in coerced formlistInputType
- the input list typeinputElements
- the elements that lead to this value and type