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 java.lang.Object implements TraverserVisitor<GraphQLSchemaElement>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<GraphQLTypeVisitor>typeVisitors
-
Constructor Summary
Constructors Constructor Description TraverserDelegateListVisitor(java.util.List<GraphQLTypeVisitor> typeVisitors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraversalControlbackRef(TraverserContext<GraphQLSchemaElement> context)This method is called when a node was already visited before.TraversalControlenter(TraverserContext<GraphQLSchemaElement> context)TraversalControlleave(TraverserContext<GraphQLSchemaElement> context)
-
-
-
Field Detail
-
typeVisitors
private final java.util.List<GraphQLTypeVisitor> typeVisitors
-
-
Constructor Detail
-
TraverserDelegateListVisitor
TraverserDelegateListVisitor(java.util.List<GraphQLTypeVisitor> typeVisitors)
-
-
Method Detail
-
enter
public TraversalControl enter(TraverserContext<GraphQLSchemaElement> context)
- Specified by:
enterin interfaceTraverserVisitor<GraphQLSchemaElement>- Parameters:
context- the context in place- Returns:
- Any allowed control value
-
leave
public TraversalControl leave(TraverserContext<GraphQLSchemaElement> context)
- Specified by:
leavein interfaceTraverserVisitor<GraphQLSchemaElement>- Parameters:
context- the context in place- Returns:
- Only Continue or Quit allowed
-
backRef
public TraversalControl backRef(TraverserContext<GraphQLSchemaElement> context)
Description copied from interface:TraverserVisitorThis 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:
backRefin interfaceTraverserVisitor<GraphQLSchemaElement>- Parameters:
context- the context in place- Returns:
- Only Continue or Quit allowed
-
-