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 GraphQLInputValueDefinitionprivate final List<GraphQLInputSchemaElement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInputElements(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements) privateInputElements(GraphQLInputSchemaElement startElement) -
Method Summary
Modifier and TypeMethodDescriptionThis is the lastGraphQLInputValueDefinitionthat pointed to the value during a callback.This is the list of input schema elements that are unwrapped, e.g.private ValueTraverser.InputElementspush(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:
getInputElementsin interfaceValueVisitor.InputElements- Returns:
- then list of input schema elements that lead to an input value.
-
getUnwrappedInputElements
Description copied from interface:ValueVisitor.InputElementsThis is the list of input schema elements that are unwrapped, e.g.GraphQLListandGraphQLNonNulltypes have been removed- Specified by:
getUnwrappedInputElementsin interfaceValueVisitor.InputElements- Returns:
- then list of
GraphQLInputValueDefinitionelements that lead to an input value.
-
getLastInputValueDefinition
Description copied from interface:ValueVisitor.InputElementsThis is the lastGraphQLInputValueDefinitionthat pointed to the value during a callback. This will be either aGraphQLArgumentor aGraphQLInputObjectField- Specified by:
getLastInputValueDefinitionin interfaceValueVisitor.InputElements- Returns:
- the last
GraphQLInputValueDefinitionthat contains this value
-