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 java.lang.Object implements ValueVisitor.InputElements
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<GraphQLInputSchemaElement>
inputElements
private GraphQLInputValueDefinition
lastElement
private java.util.List<GraphQLInputSchemaElement>
unwrappedInputElements
-
Constructor Summary
Constructors Modifier Constructor Description private
InputElements(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements)
private
InputElements(GraphQLInputSchemaElement startElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GraphQLInputSchemaElement>
getInputElements()
GraphQLInputValueDefinition
getLastInputValueDefinition()
This is the lastGraphQLInputValueDefinition
that pointed to the value during a callback.java.util.List<GraphQLInputSchemaElement>
getUnwrappedInputElements()
This is the list of input schema elements that are unwrapped, e.g.private ValueTraverser.InputElements
push(GraphQLInputSchemaElement inputElement)
-
-
-
Field Detail
-
inputElements
private final com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements
-
unwrappedInputElements
private final java.util.List<GraphQLInputSchemaElement> unwrappedInputElements
-
lastElement
private final GraphQLInputValueDefinition lastElement
-
-
Constructor Detail
-
InputElements
private InputElements(GraphQLInputSchemaElement startElement)
-
InputElements
private InputElements(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements)
-
-
Method Detail
-
push
private ValueTraverser.InputElements push(GraphQLInputSchemaElement inputElement)
-
getInputElements
public java.util.List<GraphQLInputSchemaElement> getInputElements()
- Specified by:
getInputElements
in interfaceValueVisitor.InputElements
- Returns:
- then list of input schema elements that lead to an input value.
-
getUnwrappedInputElements
public java.util.List<GraphQLInputSchemaElement> 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
public GraphQLInputValueDefinition 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
-
-