Package graphql.schema
Class SchemaTraverser.TraverserDelegateListVisitor
java.lang.Object
graphql.schema.SchemaTraverser.TraverserDelegateListVisitor
- All Implemented Interfaces:
TraverserVisitor<GraphQLSchemaElement>
- Enclosing class:
SchemaTraverser
private static class SchemaTraverser.TraverserDelegateListVisitor
extends Object
implements TraverserVisitor<GraphQLSchemaElement>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackRef
(TraverserContext<GraphQLSchemaElement> context) This method is called when a node was already visited before.enter
(TraverserContext<GraphQLSchemaElement> context) leave
(TraverserContext<GraphQLSchemaElement> context)
-
Field Details
-
typeVisitors
-
-
Constructor Details
-
TraverserDelegateListVisitor
TraverserDelegateListVisitor(List<GraphQLTypeVisitor> typeVisitors)
-
-
Method Details
-
enter
- Specified by:
enter
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Any allowed control value
-
leave
- Specified by:
leave
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-
backRef
Description copied from interface:TraverserVisitor
This method is called when a node was already visited before. This can happen for two reasons: 1. There is a cycle. 2. A node has more than one parent. This means the structure is not a tree but a graph.- Specified by:
backRef
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-