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>inputElementsprivate GraphQLInputValueDefinitionlastElementprivate java.util.List<GraphQLInputSchemaElement>unwrappedInputElements
-
Constructor Summary
Constructors Modifier Constructor Description privateInputElements(com.google.common.collect.ImmutableList<GraphQLInputSchemaElement> inputElements)privateInputElements(GraphQLInputSchemaElement startElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GraphQLInputSchemaElement>getInputElements()GraphQLInputValueDefinitiongetLastInputValueDefinition()This is the lastGraphQLInputValueDefinitionthat 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.InputElementspush(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:
getInputElementsin 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.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
public GraphQLInputValueDefinition 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
-
-