Package graphql.analysis.values
Class ValueTraverser.InputElements
java.lang.Object
graphql.analysis.values.ValueTraverser.InputElements
- All Implemented Interfaces:
ValueVisitor.InputElements
- Enclosing class:
ValueTraverser
private static class ValueTraverser.InputElements
extends Object
implements ValueVisitor.InputElements
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList
<GraphQLInputSchemaElement> private final GraphQLInputValueDefinition
private final List
<GraphQLInputSchemaElement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
InputElements
(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements) private
InputElements
(GraphQLInputSchemaElement startElement) -
Method Summary
Modifier and TypeMethodDescriptionThis is the lastGraphQLInputValueDefinition
that pointed to the value during a callback.This is the list of input schema elements that are unwrapped, e.g.private ValueTraverser.InputElements
push
(GraphQLInputSchemaElement inputElement)
-
Field Details
-
inputElements
-
unwrappedInputElements
-
lastElement
-
-
Constructor Details
-
InputElements
-
InputElements
private InputElements(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements)
-
-
Method Details
-
push
-
getInputElements
- Specified by:
getInputElements
in interfaceValueVisitor.InputElements
- Returns:
- then list of input schema elements that lead to an input value.
-
getUnwrappedInputElements
Description copied from interface:ValueVisitor.InputElements
This is the list of input schema elements that are unwrapped, e.g.GraphQLList
andGraphQLNonNull
types have been removed- Specified by:
getUnwrappedInputElements
in interfaceValueVisitor.InputElements
- Returns:
- then list of
GraphQLInputValueDefinition
elements that lead to an input value.
-
getLastInputValueDefinition
Description copied from interface:ValueVisitor.InputElements
This is the lastGraphQLInputValueDefinition
that pointed to the value during a callback. This will be either aGraphQLArgument
or aGraphQLInputObjectField
- Specified by:
getLastInputValueDefinition
in interfaceValueVisitor.InputElements
- Returns:
- the last
GraphQLInputValueDefinition
that contains this value
-